Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two editors on one page look at the same vue model #23

Open
IvanNikolaychuk opened this issue Feb 18, 2021 · 3 comments
Open

Two editors on one page look at the same vue model #23

IvanNikolaychuk opened this issue Feb 18, 2021 · 3 comments

Comments

@IvanNikolaychuk
Copy link

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?

@gllanasnas
Copy link

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

@qiuzman
Copy link

qiuzman commented Jul 25, 2023

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.

@mmarquez
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants