{\r
CKEDITOR.plugins.add( 'div',\r
{\r
- requires : [ 'editingblock', 'domiterator' ],\r
+ requires : [ 'editingblock', 'domiterator', 'styles' ],\r
\r
init : function( editor )\r
{\r
{\r
editor.contextMenu.addListener( function( element, selection )\r
{\r
- if ( !element )\r
+ if ( !element || element.isReadOnly())\r
return null;\r
\r
var elementPath = new CKEDITOR.dom.elementPath( element ),\r