7 Oct
2009
7 Oct
'09
9:52 a.m.
Hi Devs, Currently the method signature looks like: public String officeToXHTML(String pageName, Map<String, String> cleaningParams) throws XWikiGWTException The contract is that this method will import whatever the "latest" attachment to the given document into xhtml. This is bit unsafe and we have a better option of using com.xpn.xwiki.wysiwyg.client.util.Attachment instead. So the new method that would be introduced is: public String officeToXHTML(Attachment attachment, Map<String, String> cleaningParams) throws XWikiGWTException; This is more clean, expressive and safe. WDYT? - Asiri