From 372221424b6df26666127bd29cfd65a6c1d0edd4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 23 Jun 2013 13:30:27 +0200 Subject: [PATCH] Fixed context menu within CKEditor --- com.woltlab.wcf/templates/wysiwyg.tpl | 4 ++++ .../files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index 5013051f98..06d9dead5d 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -56,6 +56,10 @@ $(function() { {event name='javascriptInit'} + if ($config.extraPlugins.indexOf('divarea') != -1) { + CKEDITOR.dom.element.prototype.disableContextMenu = function() { }; + } + var $editor = CKEDITOR.instances['{if $wysiwygSelector|isset}{$wysiwygSelector|encodeJS}{else}text{/if}']; if ($editor) $editor.destroy(true); diff --git a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js index 547443a262..d295051190 100644 --- a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js +++ b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js @@ -55,7 +55,7 @@ insertFakeSubmitButton(event); // remove stupid title tag - $(event.editor.container.$).find(".cke_wysiwyg_div").addClass('cke_enable_context_menu').removeAttr('title'); + $(event.editor.container.$).find('.cke_wysiwyg_div').removeAttr('title'); }); /** -- 2.20.1