From e7eac23983a28fa99a6bcb35d400a318d1fa669a Mon Sep 17 00:00:00 2001 From: DianaXWiki Date: Tue, 24 Feb 2026 12:49:46 +0200 Subject: [PATCH] Remove ckeditor contextmenu --- customize.dist/ckeditor-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/customize.dist/ckeditor-config.js b/customize.dist/ckeditor-config.js index a0dfecfe0..bff08f9bd 100644 --- a/customize.dist/ckeditor-config.js +++ b/customize.dist/ckeditor-config.js @@ -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= [