Class DefaultEditorConverter
java.lang.Object
com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter
- All Implemented Interfaces:
EditorConverter
Instigate the conversion of HTML received from the Confluence editor to a format suitable for storage.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEditorConverter
(Transformer storageConverter, HtmlToXmlConverter htmlToXmlConverter) -
Method Summary
Modifier and TypeMethodDescriptionconvert
(String editorFormat, ConversionContext conversionContext)
-
Constructor Details
-
DefaultEditorConverter
-
-
Method Details
-
convert
public String convert(String editorFormat, ConversionContext conversionContext) throws XhtmlParsingException, XhtmlException - Specified by:
convert
in interfaceEditorConverter
- Parameters:
editorFormat
- the editor formatted data to be converted.conversionContext
- the context for the conversion- Returns:
- the converted data
- Throws:
XhtmlParsingException
- if there is a specific problem parsing the supplied editorFormat dataXhtmlException
- for all other problems.
-