X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fdiv%2Fplugin.js;h=158070fa69b6beaf691607c5c69e2fca23488c95;hb=refs%2Ftags%2Fv3.4;hp=0714deeb25eef989eaa4ed847fdad08867a34337;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/div/plugin.js b/_source/plugins/div/plugin.js index 0714dee..158070f 100644 --- a/_source/plugins/div/plugin.js +++ b/_source/plugins/div/plugin.js @@ -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 ),