MCPcopy
hub / github.com/codex-team/editor.js / render

Method render

test/cypress/tests/utils/flipper.cy.ts:16–24  ·  view source on GitHub ↗

* Mocked render method

()

Source from the content-addressed store, hash-verified

14 * Mocked render method
15 */
16 public render(): HTMLElement {
17 const wrapper = document.createElement('div');
18
19 wrapper.classList.add('cdx-some-plugin');
20 wrapper.contentEditable = 'true';
21 wrapper.addEventListener('keydown', SomePlugin.pluginInternalKeydownHandler);
22
23 return wrapper;
24 }
25
26 /**
27 * Used to display our tool in the Toolbox

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected