Remove ckeditor contextmenu

This commit is contained in:
DianaXWiki 2026-02-24 12:49:46 +02:00
parent 5a62afb17f
commit e7eac23983

View File

@ -13,7 +13,8 @@ CKEDITOR.editorConfig = function( config ) {
config.removeButtons= 'Source,Maximize';
// magicline plugin inserts html crap into the document which is not part of the
// document itself and causes problems when it's sent across the wire and reflected back
config.removePlugins= 'resize,elementspath,liststyle';
var isMobile = /Android|iPad|iPhone|iPod/i.test(navigator.userAgent);
config.removePlugins= 'resize,elementspath,liststyle' + (isMobile ? ',contextmenu,tabletools,tableselection' : '');
config.resize_enabled= false; //bottom-bar
config.extraPlugins= 'autolink,colorbutton,colordialog,font,indentblock,justify,mediatag,print,blockbase64,mathjax,wordcount,comments';
config.toolbarGroups= [