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

Method render

action_text-trix/app/assets/javascripts/trix.js:3844–3852  ·  view source on GitHub ↗
(document)

Source from the content-addressed store, hash-verified

3842
3843 class DocumentView extends ObjectView {
3844 static render(document) {
3845 const element = makeElement("div");
3846 const view = new this(document, {
3847 element
3848 });
3849 view.render();
3850 view.sync();
3851 return element;
3852 }
3853 constructor() {
3854 super(...arguments);
3855 this.element = this.options.element;

Callers 10

syncMethod · 0.45
trix.jsFile · 0.45
pasteFunction · 0.45
beforeinputFunction · 0.45
BackspaceFunction · 0.45
TabFunction · 0.45
"Tab+Shift"Function · 0.45
renderMethod · 0.45
performFunction · 0.45

Calls 7

getBlocksMethod · 0.80
makeElementFunction · 0.70
syncMethod · 0.45
isEmptyMethod · 0.45
groupObjectsMethod · 0.45
getNodesMethod · 0.45

Tested by

no test coverage detected