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

v-model, events "input" or "update: model-value" do not work in source edit mode #254

Open
anfisa08 opened this issue Jul 18, 2023 · 3 comments
Labels
pending:feedback This issue is blocked by necessary feedback.

Comments

@anfisa08
Copy link

Hello,

I'm using Vue 3, Vite, TS and "@ckeditor/ckeditor5-vue": "5.1.0", "@ckeditor/ckeditor5-html-support": "^38.1.0", "@ckeditor/ckeditor5- edit source code": "^38.1.0".

When I turn on source edit mode and change something, the component does not send an "input" or "update: model-value" event. But when I turn off source edit mode, both of these events are dispatched.

I tried to solve the problem using the updateEditorData method of the SourceEditing plugin as recommended here ckeditor/ckeditor5#11008. I used a keypress listener event and called this method if the mode is on.

But if I use v-model and this method, the component starts sending "input" or "update: model value" events in a loop.

@Witoso
Copy link
Member

Witoso commented Jul 19, 2023

Thanks for reporting, when you say loop do you mean an infinite loop? If yes, then it's sounds like an issue we recently fixed ckeditor/ckeditor5#14469 in the main repo (not released yet).

@Witoso Witoso added the pending:feedback This issue is blocked by necessary feedback. label Jul 19, 2023
@anfisa08
Copy link
Author

Yes, it looks like it's the same. Thank you, I'll wait for the fix.

@aimeos
Copy link

aimeos commented Mar 6, 2024

@Witoso The blur event is also not emitted if the editor is in source edit mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending:feedback This issue is blocked by necessary feedback.
Projects
None yet
Development

No branches or pull requests

3 participants