JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / justify / plugin.js
index 695f910..82c1fcc 100644 (file)
@@ -49,6 +49,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
        function onSelectionChange( evt )\r
        {\r
+               if ( evt.editor.readOnly )\r
+                       return;\r
+\r
                var command = evt.editor.getCommand( this.name );\r
                command.state = getState.call( this, evt.editor, evt.data.path );\r
                command.fire( 'state' );\r
@@ -237,3 +240,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                requires : [ 'domiterator' ]\r
        });\r
 })();\r
+\r
+ /**\r
+ * List of classes to use for aligning the contents. If it's null, no classes will be used\r
+ * and instead the corresponding CSS values will be used. The array should contain 4 members, in the following order: left, center, right, justify.\r
+ * @name CKEDITOR.config.justifyClasses\r
+ * @type Array\r
+ * @default null\r
+ * @example\r
+ * // Use the classes 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify'\r
+ * config.justifyClasses = [ 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify' ];\r
+ */\r