| 1 | import View from "inspector/view" |
| 2 | |
| 3 | class 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 | |
| 18 | Trix.Inspector.registerView(DocumentView) |
nothing calls this directly
no test coverage detected
searching dependent graphs…