mweiss / elm-rte-toolkit / RichText.Model.InlineElement

An inline element is an element with marks. It represents the contents of an inline node that is not a text node.


type InlineElement

InlineElement is an element with marks. It represents the contents of an inline node that is not a text node.

inlineElement : RichText.Model.Element.Element -> List RichText.Model.Mark.Mark -> InlineElement

Creates an inline element from an element and a list of marks

element : InlineElement -> RichText.Model.Element.Element

Element from an inline element

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

Marks from an inline element

withElement : RichText.Model.Element.Element -> InlineElement -> InlineElement

Creates an inline element with the new Element

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

Creates an inline element with the new marks