Fixed context menu within CKEditor
authorAlexander Ebert <ebert@woltlab.com>
Sun, 23 Jun 2013 11:30:27 +0000 (13:30 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 23 Jun 2013 11:30:27 +0000 (13:30 +0200)
com.woltlab.wcf/templates/wysiwyg.tpl
wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js

index 5013051f987c07b5f2fdbe3c23c0a5b5dec951d9..06d9dead5d7002c456aa660c7f9912b0948ca633 100644 (file)
@@ -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);
        
index 547443a262bc98f2af30f5e39b7d6226b610c1e9..d295051190ccb66609e01b2bf4978df66bee87a6 100644 (file)
@@ -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');
        });
        
        /**