Toolbar
Module with useful methods managing Editor.js Toolbar
open — shows Toolbar
close — hides Toolbar
Show Toolbar
This method has no arguments
Method does not return anything
open(): void
class MyTool {
constructor({data, api}){
this.api = api;
// ...
}
openToolbar() {
this.api.toolbar.open();
// then do something else
}
// ... other methods
}
Closes Toolbar
This method has no arguments
Method does not return anything
close(): void
class MyTool {
constructor({data, api}){
this.api = api;
// ...
}
closeToolbar() {
this.api.toolbar.close();
// then do something else
}
// ... other methods
}