X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fliststyle%2Fplugin.js;h=02f18377502543fd5ba8ee8cd98bede490631234;hb=refs%2Ftags%2Fv3.5.3;hp=b1b6df3bab31e9f42ce380e39635673ccb904961;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_source/plugins/liststyle/plugin.js b/_source/plugins/liststyle/plugin.js index b1b6df3..02f1837 100644 --- a/_source/plugins/liststyle/plugin.js +++ b/_source/plugins/liststyle/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -43,6 +43,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { editor.contextMenu.addListener( function( element, selection ) { + if ( !element || element.isReadOnly() ) + return null; + while ( element ) { var name = element.getName();