mweiss/elm-rte-toolkit/1.0.3

NOTE: the latest version is 1.0.4

RichText.Model.HtmlNode

HtmlNode is used to determine how to render the editor. We don't use the built in Html library because we can't inspect a node after it has been created.

= ElementNode String (List HtmlAttribute) (Array HtmlNode)
| TextNode String

An HTML node. It can be either an ElementNode or TextNode

ElementNode "p" [ ( "class", "my-paragraph" ) ] (Array.fromList [ Text "sample" ])
type alias HtmlAttribute =
( String, String )

An HTML attribute:

( "src", "logo.svg" )