Affects Version/s: 1.6.1
Fix Version/s: 1.12
See the attached word-file. It's a copy-paste of 'Apollo-11' article from Wikipedia.
There's a center-aligned table. When you copy-paste it in the CKEditor, the table displays as center-aligned in the WYSIWYG editor, which is great!
But as soon as you save the page or preview, it gets left aligned.
Looking a bit closer, the styles of the table when displayed in WYSIWYG mode and when in save/preview mode appear slightly different, which seems unexpected. In WYSIWYG mode, there's an attribute 'align:center' applied on the table element. In Save/Preview mode, that attribute is no longer displayed but got replaced with 'text-align:center' within the style tag.
The problem also is that there appears to be no other way to center-align the table, so the user is kind of stuck in WYSIWYG mode. If you know of a short-term fix to make the table center-align, then that'll be great so we can tell our other users about it.
I also tried this syntax as prescribed in the XWiki Syntax guide (http://lod.springer.com/wiki/bin/view/XWiki/XWikiSyntax) but that did not center-align the table: