Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
2.5, 5.4.5, 8.2.1
-
None
-
XWiki Enterprise 2.5
-
Text align, table, WYSIWYG
-
Unknown
-
Description
The problem appears if you try to align cells with multiple lines. For me the table looked like this before trying to align it:
|(% colspan="3" %)(% class="xwiki-document" %) ((( 2. Some text * myList1 * myList2 )))|4,0|1,2|2,0|4,0|4,0|0,9|2,0|4,0|4,0|0,6|2,0|4,0|4,0
So I opened the WYSIWYG editor, marked all of the cell and clicked on align left. All text was now aligned to the left in WYSIWYG. Then I switched to wiki display, still in WYSIWYG editor. Then I switched back to WYSIWYG display and all of the sudden "myList1" and "myList2" were centered again. Going back to code I found this:
|(% colspan="3" %)(% class="xwiki-document" %) ((( (% style="text-align: left" %) 2. Some text * myList1 * myList2 )))|4,0|1,2|2,0|4,0|4,0|0,9|2,0|4,0|4,0|0,6|2,0|4,0|4,0
To fix this I tried changing the wiki as follows:
|(% colspan="3" %)(% class="xwiki-document" %)(% style="text-align: left" %) ((( 2. Some text * myList1 * myList2 )))|4,0|1,2|2,0|4,0|4,0|0,9|2,0|4,0|4,0|0,6|2,0|4,0|4,0
Switching back to WYSIWYG display it now showed correctly. On switching back to wiki I found that the markup had been changed as follows:
|(% colspan="3" %)(% style="text-align: left" %) ((( 2. Some text * myList1 * myList2 )))|4,0|1,2|2,0|4,0|4,0|0,9|2,0|4,0|4,0|0,6|2,0|4,0|4,0
Attachments
Issue Links
- duplicates
-
XWIKI-19955 Add support for aligning lists when XWiki 2.x syntax is used
- Open