Class WebappTextModeState

java.lang.Object
ro.sync.ecss.common.WebappTextModeState

@API(type=INTERNAL, src=PUBLIC) public class WebappTextModeState extends Object
The state of the document that can be input to a text editor.
  • Constructor Details

    • WebappTextModeState

      public WebappTextModeState(String xmlContent, int caretOffset)
      Constructor.
      Parameters:
      xmlContent - The text mode content.
      caretOffset - The caret offset.
  • Method Details

    • getXmlContent

      public String 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.