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

CKEditor 5 manual user input event #30

Open
hnviradiya opened this issue Oct 22, 2022 · 3 comments
Open

CKEditor 5 manual user input event #30

hnviradiya opened this issue Oct 22, 2022 · 3 comments
Labels
pending:feedback This issue is blocked by necessary feedback. type:question

Comments

@hnviradiya
Copy link

I am using CKEditor 5 with input event as follows in vue component.

But I need a change event when manually triggered by the user, but it is also triggering during any change in editorData from the code side also.

How can I get the event which is triggered by the user and not from the code in CKEditor 5?

<ckeditor :editor="editor" @input="onEditorInput" v-model="editorData"></ckeditor>
@FilipTokarski
Copy link
Member

Hi, could you specify what do you exactly mean by user input? Do you mean only typing? In such case you could for example listen on keydown event:

editor.editing.view.document.on( 'keydown', ( evt, data ) => {
    console.log( evt );
    console.log( data );
} );

@FilipTokarski FilipTokarski added pending:feedback This issue is blocked by necessary feedback. type:question labels Oct 26, 2022
@hnviradiya
Copy link
Author

Now thing is, user may format things from toolbar. Copy paste from some source. Not sure of any other source that can change data based on action taken by user. Moreover we are unable to determine information of source of the event, even that might have been helpful.

@willvitorino
Copy link

Today I'm using CKEditor Plugin's in version 27.0.0. But recently, 9 days ago, the versions went up to 36.0.1 and the v-model just stopped working. Even @input doesn't work.

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. type:question
Projects
None yet
Development

No branches or pull requests

3 participants