vue-wysiwyg icon indicating copy to clipboard operation
vue-wysiwyg copied to clipboard

Two editors on one page look at the same vue model

Open IvanNikolaychuk opened this issue 4 years ago • 3 comments

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?

IvanNikolaychuk avatar Feb 18 '21 08:02 IvanNikolaychuk

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

gllanasnas avatar Dec 01 '21 16:12 gllanasnas

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.

qiuzman avatar Jul 25 '23 13:07 qiuzman

I've created a fork to resolve this. I'm currently testing the functionality.

mmarquez avatar Aug 22 '23 10:08 mmarquez