JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4b
[ckeditor.git] / _source / plugins / liststyle / plugin.js
index b1b6df3..8e23cca 100644 (file)
@@ -43,6 +43,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        {\r
                                editor.contextMenu.addListener( function( element, selection )\r
                                        {\r
+                                               if ( !element || element.isReadOnly() )\r
+                                                       return null;\r
+\r
                                                while ( element )\r
                                                {\r
                                                        var name = element.getName();\r