Config modifications after initialization
Tiktack opened this issue · 2 comments
Tiktack commented
What is the right way to update editor configuration after it already initialized?
As an example, I want to add additional fonts after it initialized, I don't know in advance that.
I am using vanilla Jodit.
Cannot find anything in documentation :(
xdan commented
Unfortunately, the editor was not designed to be reactive. Therefore, it does not have this feature. You can simply recreate the editor.
let jodit = Jodit.make('#editor', options1)
jodit.destruct();
jodit = Jodit.make('#editor', options2)
Tiktack commented
Thanks for confirmation.