Comments (1)
You can use the toggleToolbox method of the Toolbar API. Obviously this is available if you save the editor somewhere in your state, or call it from a function to which the editor passes the api in the params (e.g., onChange). Once the editor is ready, invoke api.toolbar.toggleToolbox(true)
.
I struggled to find this for a little while because the toggleToolbox method isn't in the docs for the Toolbar API. It's very handy if you want to implement a Notion-like editor in which the user can open the toolbar by typing '/' or something.
from editor.js.
Related Issues (20)
- editorjs.mjs:4749 Uncaught TypeError: Cannot read properties of undefined (reading 'classList')
- Embed a link to a formatted text make all formatting unset
- When saving fails, editor.save() resolves the promise (instead of rejecting it) HOT 1
- Blank lines are not removed in the div contentEditable
- rtl direction issue
- Can not select several list items
- An empty block is added in readOnly mode on top HOT 1
- Navigation and Editing not compatible with web components
- Customise Toolbox Icon HOT 2
- Outdated documentation on block Settings
- Do not understand documanetation HOT 3
- Are you aware of that method .on doesn't work properly? HOT 7
- strong and em tags are ignored on paste
- Error: The Parser function of type "table" is not defined. HOT 2
- TS2351: This expression is not constructable. HOT 1
- Image Resize functionality and cropping of image
- Internal server error: Failed to resolve import "@editorjs/header" from "main.js". Does the file exist?
- How to retrieve block data? HOT 1
- Can't pass block data to tune HOT 3
- Memory leak in Shortcuts class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editor.js.