Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.99k stars 612 forks source link

how to modify config after init? #1256

Closed webasoo closed 2 years ago

webasoo commented 2 years ago

Description

how to modify config after init? ex: modify items of dropdowns .

How to reproduce?

Alex-D commented 2 years ago

Hey!

You can't, but you can destroy + init with a new config.

webasoo commented 2 years ago

Hey! thanks, but Unfortunately I use the vue-trumbowyg package. And it does not have this feature ! :(

KR34T1V commented 2 years ago

@webasoo Were you able to solve your issue somehow?

webasoo commented 2 years ago

@KR34T1V I add key-prop to vue-trumbowyg component. ex: <my-editor :key="index" /> In every update, I change "index" data, therefore the component is updated! (vue-trumbowyg is in my-editor)