Class FormattedTextHtmlConverter
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.editor.formattedtext.FormattedTextHtmlConverter
-
public class FormattedTextHtmlConverter extends Object
Allows conversion of HTML to formatted text representation and formatted text to HTML representation.
-
-
Constructor Summary
Constructors Constructor Description FormattedTextHtmlConverter(FormattedTextEncoder encoder)
Creates new instance of the converter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateFormattedText(Document document)
Converts content from specified HTML document into formatted text.String
toHtml(String formattedText, double scaleFactor)
Converts formatted text string to html
-
-
-
Constructor Detail
-
FormattedTextHtmlConverter
public FormattedTextHtmlConverter(FormattedTextEncoder encoder)
Creates new instance of the converter.- Parameters:
encoder
- the encoder to encode/decode fonts and colors, cannot benull
-
-