Class DefaultEditorConverter
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter
-
- All Implemented Interfaces:
EditorConverter
public class DefaultEditorConverter extends Object implements EditorConverter
Instigate the conversion of HTML received from the Confluence editor to a format suitable for storage.
-
-
Constructor Summary
Constructors Constructor Description DefaultEditorConverter(Transformer storageConverter, HtmlToXmlConverter htmlToXmlConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
convert(String editorFormat, ConversionContext conversionContext)
-
-
-
Constructor Detail
-
DefaultEditorConverter
public DefaultEditorConverter(Transformer storageConverter, HtmlToXmlConverter htmlToXmlConverter)
-
-
Method Detail
-
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.
-
-