Package ro.sync.ecss.common
Class WebappTextModeState
java.lang.Object
ro.sync.ecss.common.WebappTextModeState
The state of the document that can be input to a text editor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns caret position in the XML content that corresponds to the caret position in Author mode.Returns the XML content in text format that can be saved on disk or edited in a normal text editor.
-
Constructor Details
-
WebappTextModeState
Constructor.- Parameters:
xmlContent
- The text mode content.caretOffset
- The caret offset.
-
-
Method Details
-
getXmlContent
Returns the XML content in text format that can be saved on disk or edited in a normal text editor.- Returns:
- the XML content in text format that can be saved on disk or edited in a normal text editor.
-
getCaretOffset
public int getCaretOffset()Returns caret position in the XML content that corresponds to the caret position in Author mode.- Returns:
- the offset of the caret in text mode.
-