From version 3.1
edited by Vincent Massol
on 2013/02/09
To version 4.1
edited by Vincent Massol
on 2019/07/11
Change comment: There is no comment for this version

Summary

Details

FAQCode.FAQClass[0]
answer
... ... @@ -1,9 +1,9 @@
1 1  XWiki supports HTML as content of pages. See [[Page Editing>>platform:Features.PageEditing#HChoosingaSyntax]].
2 2  
3 -The hyperlinks will not get transformed into relative links though, they'll stay absolute. You'll need to manually edit them to make them local links.
3 +Once you have the content of a page saved as HTML, you can then edit the page again and change the page syntax by choosing XWiki Syntax 2.0+ and the content will get transformed into xwiki syntax.
4 4  
5 -Once you have the content of a page in HTML you can edit it and choose XWiki Syntax 2.0 or 2.1 and the content will get transformed into wiki syntax.
5 +Note that hyperlinks will not get transformed into relative links, they'll stay absolute. You'll need to manually edit them to make them local links.
6 6  
7 -An alternative to all this is to create a new page, edit it in the wysiwyg and use the insert HMTL menu button to insert the whole HTML.
7 +An alternative to all this is to create a new page, edit it in the WYSIWYG editor and use copy paste the HTML in the content, and then save.
8 8  
9 -Last you should be able to script all this using the XWiki XMLRPC or better the REST interface.
9 +If you need to script conversion from HTML to XWiki Syntax (for example you need to convert a batch of content from HTML to wiki pages) then you should use the [[Rendering Script Service>>extensions:Extension.Rendering Module.WebHome]]. To understand the Rendering architecture, check the [[Rendering wiki>>rendering:Main.WebHome]] (here's an [[example for converting content>>rendering:Main.GettingStarted||anchor="HRenderXWikiSyntax2.1contentintoXHTML"]] from one syntax to another).

Get Connected