-
public interface ComposerModelInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classComposerModelInterface.Companion
-
Method Summary
-
-
Method Detail
-
actionStates
abstract Map<ComposerAction, ActionState> actionStates()
-
backspace
abstract ComposerUpdate backspace()
-
bold
abstract ComposerUpdate bold()
-
clear
abstract ComposerUpdate clear()
-
codeBlock
abstract ComposerUpdate codeBlock()
-
debugPanic
abstract Unit debugPanic()
Force a panic for test purposes
-
delete
abstract ComposerUpdate delete()
-
deleteIn
abstract ComposerUpdate deleteIn(UInt start, UInt end)
-
enter
abstract ComposerUpdate enter()
-
getContentAsHtml
abstract String getContentAsHtml()
-
getContentAsMarkdown
abstract String getContentAsMarkdown()
-
getContentAsMessageHtml
abstract String getContentAsMessageHtml()
-
getContentAsMessageMarkdown
abstract String getContentAsMessageMarkdown()
-
getContentAsPlainText
abstract String getContentAsPlainText()
-
getCurrentDomState
abstract ComposerState getCurrentDomState()
-
getLinkAction
abstract LinkAction getLinkAction()
-
getMentionsState
abstract MentionsState getMentionsState()
-
indent
abstract ComposerUpdate indent()
-
inlineCode
abstract ComposerUpdate inlineCode()
-
insertAtRoomMention
abstract ComposerUpdate insertAtRoomMention()
Creates an at-room mention node and inserts it into the composer at the current selection
-
insertAtRoomMentionAtSuggestion
abstract ComposerUpdate insertAtRoomMentionAtSuggestion(SuggestionPattern suggestion)
Creates an at-room mention node and inserts it into the composer, replacing the text content defined by the suggestion
-
insertMention
abstract ComposerUpdate insertMention(String url, String text, List<Attribute> attributes)
Creates a mention node and inserts it into the composer at the current selection
-
insertMentionAtSuggestion
abstract ComposerUpdate insertMentionAtSuggestion(String url, String text, SuggestionPattern suggestion, List<Attribute> attributes)
Creates a mention node and inserts it into the composer, replacing the text content defined by the suggestion
-
italic
abstract ComposerUpdate italic()
-
orderedList
abstract ComposerUpdate orderedList()
-
quote
abstract ComposerUpdate quote()
-
redo
abstract ComposerUpdate redo()
-
removeLinks
abstract ComposerUpdate removeLinks()
-
replaceText
abstract ComposerUpdate replaceText(String newText)
-
replaceTextIn
abstract ComposerUpdate replaceTextIn(String newText, UInt start, UInt end)
-
replaceTextSuggestion
abstract ComposerUpdate replaceTextSuggestion(String newText, SuggestionPattern suggestion, Boolean appendSpace)
-
select
abstract ComposerUpdate select(UInt startUtf16Codeunit, UInt endUtf16Codeunit)
-
setContentFromHtml
abstract ComposerUpdate setContentFromHtml(String html)
-
setContentFromMarkdown
abstract ComposerUpdate setContentFromMarkdown(String markdown)
-
setCustomSuggestionPatterns
abstract Unit setCustomSuggestionPatterns(List<String> customSuggestionPatterns)
-
setLink
abstract ComposerUpdate setLink(String url, List<Attribute> attributes)
-
setLinkWithText
abstract ComposerUpdate setLinkWithText(String url, String text, List<Attribute> attributes)
-
strikeThrough
abstract ComposerUpdate strikeThrough()
-
toExampleFormat
abstract String toExampleFormat()
-
underline
abstract ComposerUpdate underline()
-
undo
abstract ComposerUpdate undo()
-
unindent
abstract ComposerUpdate unindent()
-
unorderedList
abstract ComposerUpdate unorderedList()
-
-
-
-