X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Findent%2Fplugin.js;h=330af61448c7597185d5b5f0e79644acdf0f57fc;hb=refs%2Ftags%2Fv3.6;hp=7967c78b660676e917a4d3a96f299665f11c6923;hpb=1056598c95187351dc58f4991d331e2258d038b5;p=ckeditor.git diff --git a/_source/plugins/indent/plugin.js b/_source/plugins/indent/plugin.js index 7967c78..330af61 100644 --- a/_source/plugins/indent/plugin.js +++ b/_source/plugins/indent/plugin.js @@ -15,6 +15,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license function onSelectionChange( evt ) { + if ( evt.editor.readOnly ) + return null; + var editor = evt.editor, elementPath = evt.data.path, list = elementPath && elementPath.contains( listNodeNames ),