X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Findent%2Fplugin.js;h=5dcfe6323cc0c0589e0da349e8f098af851a6e12;hp=c36370c1d56fa5c6126b8b540a8061cd8efaa94f;hb=4e90e78dc97789709ee7404359a5517540c27553;hpb=8f6c203fdaa543c3bca40baea6ae4ddcdf1a77f5 diff --git a/_source/plugins/indent/plugin.js b/_source/plugins/indent/plugin.js index c36370c..5dcfe63 100644 --- a/_source/plugins/indent/plugin.js +++ b/_source/plugins/indent/plugin.js @@ -15,10 +15,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license function onSelectionChange( evt ) { - var editor = evt.editor; - - var elementPath = evt.data.path, - list = elementPath && elementPath.contains( listNodeNames ); + var editor = evt.editor, + elementPath = evt.data.path, + list = elementPath && elementPath.contains( listNodeNames ), + firstBlock = elementPath.block || elementPath.blockLimit; if ( list ) return this.setState( CKEDITOR.TRISTATE_OFF ); @@ -26,8 +26,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license if ( !this.useIndentClasses && this.name == 'indent' ) return this.setState( CKEDITOR.TRISTATE_OFF ); - var path = evt.data.path, - firstBlock = path.block || path.blockLimit; if ( !firstBlock ) return this.setState( CKEDITOR.TRISTATE_DISABLED );