Toolbar

Module with useful methods managing Editor.js Toolbar

open — shows Toolbar

close — hides Toolbar

Open

Show Toolbar

Parameters

This method has no arguments

Return value

Method does not return anything

open(): void

Example

class MyTool { constructor({data, api}){ this.api = api; // ... } openToolbar() { this.api.toolbar.open(); // then do something else } // ... other methods }

Close

Closes Toolbar

Parameters

This method has no arguments

Return value

Method does not return anything

close(): void

Example

class MyTool { constructor({data, api}){ this.api = api; // ... } closeToolbar() { this.api.toolbar.close(); // then do something else } // ... other methods }