JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.2
[ckeditor.git] / _source / plugins / fakeobjects / plugin.js
index 14f0357..0b173c2 100644 (file)
@@ -70,7 +70,8 @@ CKEDITOR.editor.prototype.createFakeElement = function( realElement, className,
                src : CKEDITOR.getUrl( 'images/spacer.gif' ),\r
                _cke_realelement : encodeURIComponent( realElement.getOuterHtml() ),\r
                _cke_real_node_type : realElement.type,\r
-               alt : lang[ realElementType ] || lang.unknown\r
+               alt : lang[ realElementType ] || lang.unknown,\r
+               align : realElement.getAttribute( 'align' ) || ''\r
        };\r
 \r
        if ( realElementType )\r
@@ -97,7 +98,8 @@ CKEDITOR.editor.prototype.createFakeParserElement = function( realElement, class
                src : CKEDITOR.getUrl( 'images/spacer.gif' ),\r
                _cke_realelement : encodeURIComponent( html ),\r
                _cke_real_node_type : realElement.type,\r
-               alt : lang[ realElementType ] || lang.unknown\r
+               alt : lang[ realElementType ] || lang.unknown,\r
+               align : realElement.attributes.align || ''\r
        };\r
 \r
        if ( realElementType )\r