X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fliststyle%2Fplugin.js;h=8e23cca34253a193426fcbeac0a9898a56b4bb27;hp=b1b6df3bab31e9f42ce380e39635673ccb904961;hb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab diff --git a/_source/plugins/liststyle/plugin.js b/_source/plugins/liststyle/plugin.js index b1b6df3..8e23cca 100644 --- a/_source/plugins/liststyle/plugin.js +++ b/_source/plugins/liststyle/plugin.js @@ -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();