8 Oct
2009
8 Oct
'09
6 a.m.
+1 Asiri Rathnayake wrote:
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 _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs