X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Findent%2Fplugin.js;h=7967c78b660676e917a4d3a96f299665f11c6923;hb=1056598c95187351dc58f4991d331e2258d038b5;hp=c36370c1d56fa5c6126b8b540a8061cd8efaa94f;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git diff --git a/_source/plugins/indent/plugin.js b/_source/plugins/indent/plugin.js index c36370c..7967c78 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 ); @@ -453,7 +451,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * and instead the {@link #indentUnit} and {@link #indentOffset} properties will be used. * @name CKEDITOR.config.indentClasses * @type Array - * default null + * @default null * @example * // Use the classes 'Indent1', 'Indent2', 'Indent3' * config.indentClasses = ['Indent1', 'Indent2', 'Indent3'];