mweiss/elm-rte-toolkit/1.0.2

NOTE: the latest version is 1.0.4

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

text : Text -> String

text from Text

marks : Text -> List Mark

marks from Text

annotations : Text -> Set String

annotations from Text

withText : String -> Text -> Text

Text with the given text

withMarks : List Mark -> Text -> Text

Text with the given marks

withAnnotations : Set String -> Text -> Text

Text with the given annotations