codex-team / codex-team/editor.js
Updating list of tools after editor is initialized
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Hi there,
I was wondering, what would be the preferred method of updating a list of tools once the editor is already active and visible for users? I saw that there is a setter for configuration that handles new config, but I am not sure how to make `EditorJS` object utilize that new info. Right now setting new value won't update the editor.
My use case revolves around adding or removing toolbar items based on some external user config. I know that some blocks may not render after such a thing happens, but that is something I don't have a problem with as I know users won't mind losing a block when they disable some tool in their config.
Is destruction and reinitialization the only way to achieve this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.