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

[Enhancement] - For editor component #1050

Closed
shaan1974 opened this issue Mar 4, 2021 · 1 comment
Closed

[Enhancement] - For editor component #1050

shaan1974 opened this issue Mar 4, 2021 · 1 comment
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@shaan1974
Copy link

Hello,

Is it possible to include into the editor component emit event "text-change" also the instance of quill "this.quill".

It could be great to have also the instance, it avoid to add an extra "id" attribute to the component and after add this "id" value into the "v-on:text-change" as parameter.

Right now i'm doint like that:
<p-editor id="quill_A" v-model="data.e_value1" editorStyle="height: 120px" v-on:text-change="this.quillTextChange($event,'quill_A')"/>

and after i have into the function "quillTextChange(event,id)":
document.querySelector("#" + id + " .p-editor-content").__quill
to get the instance.

By the way thanks of for this great work.

@cagataycivici cagataycivici self-assigned this Mar 10, 2021
@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Mar 10, 2021
@cagataycivici cagataycivici added this to the 3.3.5 milestone Mar 10, 2021
@shaan1974
Copy link
Author

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants