From: Alexander Ebert Date: Sun, 23 Jun 2013 11:30:27 +0000 (+0200) Subject: Fixed context menu within CKEditor X-Git-Tag: 2.0.0_Beta_4~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=372221424b6df26666127bd29cfd65a6c1d0edd4;p=GitHub%2FWoltLab%2FWCF.git Fixed context menu within CKEditor --- 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'); }); /**