X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fpanel%2Fplugin.js;h=7b542b321c4290852cac29a3dd94d0c6cdaee3cc;hp=603fc25bd8ee66decfa7607a16517854dbb8e173;hb=941b0a9ba4e673e292510d80a5a86806994b8ea6;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91 diff --git a/_source/plugins/panel/plugin.js b/_source/plugins/panel/plugin.js index 603fc25..7b542b3 100644 --- a/_source/plugins/panel/plugin.js +++ b/_source/plugins/panel/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -160,7 +160,7 @@ CKEDITOR.ui.panel.prototype = // It looks strange, but for FF2, the styles must go // after , so it (body) becames immediatelly // available. (#3031) - '' + + CKEDITOR.tools.buildStyleHtml( this.css ) + '<\/html>' ); doc.$.close(); @@ -230,6 +230,11 @@ CKEDITOR.ui.panel.prototype = block.show(); return block; + }, + + destroy : function() + { + this.element && this.element.remove(); } }; @@ -253,6 +258,9 @@ CKEDITOR.ui.panel.block = CKEDITOR.tools.createClass( this.keys = {}; this._.focusIndex = -1; + + // Disable context menu for panels. + this.element.disableContextMenu(); }, _ : {},