use of org.apache.wiki.parser.CreoleToJSPWikiTranslator in project jspwiki by apache.
the class CreoleFilter method preSave.
/**
* {@inheritDoc}
*/
public String preSave(WikiContext wikiContext, String content) throws FilterException {
try {
String username = wikiContext.getCurrentUser().getName();
Properties prop = wikiContext.getEngine().getWikiProperties();
return new CreoleToJSPWikiTranslator().translateSignature(prop, content, username);
} catch (Exception e) {
log.error(e.getMessage(), e);
return e.getMessage();
}
}
Aggregations