vue-wysiwyg
vue-wysiwyg copied to clipboard
Two editors on one page look at the same vue model
Hi,
When I have two editors on one page both are looking at the same model. For example, I have:
<mc-wysiwyg v-model="entities.newEntity.header"></mc-wysiwyg>
and
<mc-wysiwyg v-model="entities.newEntity.footer"></mc-wysiwyg>
Despite having different models, second editor (footer) takes the value from the first editor (header).
How can I fix that?
Hi,
When I have two editors on one page both are looking at the same model. For example, I have:
<mc-wysiwyg v-model="entities.newEntity.header"></mc-wysiwyg>
and<mc-wysiwyg v-model="entities.newEntity.footer"></mc-wysiwyg>
Despite having different models, second editor (footer) takes the value from the first editor (header).
How can I fix that?
Same error
I have this same bug. I had to add a v-if to each editor if not present on at the same time. If you need both present at the same time I believe you are out of luck.
I've created a fork to resolve this. I'm currently testing the functionality.