X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Findent%2Fplugin.js;h=e9992bdea601e17fc4a2b8644381040906b07e50;hp=025002543a9e51e7416bc1d4d834c34ed11a4a4c;hb=c6e377a02b54abc07129d72b632763c727476a15;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6
diff --git a/_source/plugins/indent/plugin.js b/_source/plugins/indent/plugin.js
index 0250025..e9992bd 100644
--- a/_source/plugins/indent/plugin.js
+++ b/_source/plugins/indent/plugin.js
@@ -159,7 +159,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
for ( i = count - 1 ; i >= 0 ; i-- )
{
- if( ( child = children.getItem( i ) ) && child.is && child.is( 'li' ) )
+ if ( ( child = children.getItem( i ) ) && child.is && child.is( 'li' ) )
pendingLis.push( child );
}
}
@@ -177,7 +177,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
followingList = li;
// Nest preceding
/ inside current - if any.
- while( ( followingList = followingList.getNext() ) &&
+ while ( ( followingList = followingList.getNext() ) &&
followingList.is &&
followingList.getName() in listNodeNames )
{
@@ -321,3 +321,29 @@ CKEDITOR.tools.extend( CKEDITOR.config,
indentUnit : 'px',
indentClasses : null
});
+
+/**
+ * Size of each indentation step
+ * @type Number
+ * @default 40
+ * @example
+ * config.indentOffset = 4;
+ */
+
+ /**
+ * Unit for the indentation style
+ * @type String
+ * @default 'px'
+ * @example
+ * config.indentUnit = 'em';
+ */
+
+ /**
+ * List of classes to use for indenting the contents. If it's null, no classes will be used
+ * and instead the {@link #indentUnit} and {@link #indentOffset} properties will be used.
+ * @type Array
+ * default null
+ * @example
+ * // Use the classes 'Indent1', 'Indent2', 'Indent3'
+ * config.indentClasses = ['Indent1', 'Indent2', 'Indent3'];
+ */