X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fliststyle%2Fplugin.js;h=e99b339b7dab95f8494c3c14d9b9bbada305c570;hb=6e682412d5cc0dfaedb376482e585bf2989c6863;hp=b1b6df3bab31e9f42ce380e39635673ccb904961;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_source/plugins/liststyle/plugin.js b/_source/plugins/liststyle/plugin.js index b1b6df3..e99b339 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-2012, 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();