rupertlssmith / rte-toolkit-patch / RichText.Model.Text

Text represents an editor text node and associated mark and annotation metadata.


type Text

Text represents an editor text node and associated mark and annotation metadata.

empty : Text

empty Text

text : Text -> String

text from Text

marks : Text -> List RichText.Model.Mark.Mark

marks from Text

annotations : Text -> Set String

annotations from Text

withText : String -> Text -> Text

Text with the given text

withMarks : List RichText.Model.Mark.Mark -> Text -> Text

Text with the given marks

withAnnotations : Set String -> Text -> Text

Text with the given annotations