JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1.1
[ckeditor.git] / _source / plugins / indent / plugin.js
index 0250025..e9992bd 100644 (file)
@@ -159,7 +159,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
                                for ( i = count - 1 ; i >= 0 ; i-- )\r
                                {\r
-                                       if( ( child = children.getItem( i ) ) && child.is && child.is( 'li' )  )\r
+                                       if ( ( child = children.getItem( i ) ) && child.is && child.is( 'li' )  )\r
                                                pendingLis.push( child );\r
                                }\r
                        }\r
@@ -177,7 +177,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        followingList = li;\r
 \r
                                // Nest preceding <ul>/<ol> inside current <li> if any.\r
-                               while( ( followingList = followingList.getNext() ) &&\r
+                               while ( ( followingList = followingList.getNext() ) &&\r
                                           followingList.is &&\r
                                           followingList.getName() in listNodeNames )\r
                                {\r
@@ -321,3 +321,29 @@ CKEDITOR.tools.extend( CKEDITOR.config,
                indentUnit : 'px',\r
                indentClasses : null\r
        });\r
+\r
+/**\r
+ * Size of each indentation step\r
+ * @type Number\r
+ * @default 40\r
+ * @example\r
+ * config.indentOffset = 4;\r
+ */\r
+\r
+ /**\r
+ * Unit for the indentation style\r
+ * @type String\r
+ * @default 'px'\r
+ * @example\r
+ * config.indentUnit = 'em';\r
+ */\r
+\r
+ /**\r
+ * List of classes to use for indenting the contents. If it's null, no classes will be used\r
+ * and instead the {@link #indentUnit} and {@link #indentOffset} properties will be used.\r
+ * @type Array\r
+ * default null\r
+ * @example\r
+ * // Use the classes 'Indent1', 'Indent2', 'Indent3'\r
+ * config.indentClasses = ['Indent1', 'Indent2', 'Indent3'];\r
+ */\r