X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fdiv%2Fplugin.js;h=158070fa69b6beaf691607c5c69e2fca23488c95;hb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;hp=463c5f63800e372fa139fa785ec1c29706234dcd;hpb=c6e377a02b54abc07129d72b632763c727476a15;p=ckeditor.git diff --git a/_source/plugins/div/plugin.js b/_source/plugins/div/plugin.js index 463c5f6..158070f 100644 --- a/_source/plugins/div/plugin.js +++ b/_source/plugins/div/plugin.js @@ -12,7 +12,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { CKEDITOR.plugins.add( 'div', { - requires : [ 'editingblock', 'domiterator' ], + requires : [ 'editingblock', 'domiterator', 'styles' ], init : function( editor ) { @@ -95,7 +95,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { editor.contextMenu.addListener( function( element, selection ) { - if ( !element ) + if ( !element || element.isReadOnly()) return null; var elementPath = new CKEDITOR.dom.elementPath( element ),