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

Class DocumentView

src/inspector/views/document_view.js:3–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import View from "inspector/view"
2
3class DocumentView extends View {
4 static title = "Document"
5 static template = "document"
6 static events = {
7 "trix-change": function() {
8 return this.render()
9 },
10 }
11
12 render() {
13 this.document = this.editor.getDocument()
14 return super.render(...arguments)
15 }
16}
17
18Trix.Inspector.registerView(DocumentView)

Callers

nothing calls this directly

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…