Hi @kautuk_sahni
Yes, I managed to find a solution.
RTE clientlib extends CUI.rte.ui.ContextMenuBuilder class with name CUI.rte.ui.cui.CuiContextMenuBuilder which has overridden function build(). This function causes to not load context menu (menu that loads on right click).
I created a custom clientlib and extended the same class and override the build() function to return true instead for 'undefined' as below.
/* global Class: true */
/* jshint strict: false */
(function ($, CUI) {
//'use strict';
CUI.rte.ui.cui.CuiContextMenuBuilder = new Class({
toString: 'CuiContextMenuBuilder',
extend: CUI.rte.ui.ContextMenuBuilder,
construct: function (editorKernel) {
// TODO ...?
},
build: function (selectionContext, context) {
// returning undefined means that we don't use a context menu
return true;
},
createItem: function (config) {
return new CUI.rte.ui.cui.CmItemImpl(config);
},
createSeparator: function () {
return new CUI.rte.ui.cui.CmSeparatorImpl();
},
showAt: function (x, y) {
// TODO ...?
},
hideAll: function () {
// TODO ...?
},
isVisible: function () {
return false;
}
}); This fixed the issue.