Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
methods
Method · 0.95
Calls
2
clear
Method · 0.65
close
Method · 0.65
Tested by
no test coverage detected