MCPcopy Index your code
hub / github.com/codex-team/editor.js / clear

Method clear

src/components/modules/api/blocks.ts:194–197  ·  view source on GitHub ↗

* Clear Editor's area

()

Source from the content-addressed store, hash-verified

192 * Clear Editor's area
193 */
194 public async clear(): Promise<void> {
195 await this.Editor.BlockManager.clear(true);
196 this.Editor.InlineToolbar.close();
197 }
198
199 /**
200 * Fills Editor with Blocks data

Callers 1

methodsMethod · 0.95

Calls 2

clearMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected