MCPcopy
hub / github.com/basecamp/trix / loadHTML

Method loadHTML

src/trix/models/editor.js:22–25  ·  view source on GitHub ↗
(html = "")

Source from the content-addressed store, hash-verified

20 }
21
22 loadHTML(html = "") {
23 const document = HTMLParser.parse(html, { referenceElement: this.element }).getDocument()
24 return this.loadDocument(document)
25 }
26
27 loadJSON({ document, selectedRange }) {
28 document = Document.fromJSON(document)

Callers 10

constructorMethod · 0.80
valueMethod · 0.80
morphing_test.jsFile · 0.80
constructorMethod · 0.80
trix.jsFile · 0.80

Calls 3

loadDocumentMethod · 0.95
getDocumentMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected