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

How to access jodit editor from external function ? #23

Closed
odaiderawi opened this issue Apr 7, 2021 · 4 comments
Closed

How to access jodit editor from external function ? #23

odaiderawi opened this issue Apr 7, 2021 · 4 comments

Comments

@odaiderawi
Copy link

No description provided.

@vladimyr
Copy link
Contributor

vladimyr commented Apr 7, 2021

Assuming you have reference to rendered jodit-vue component you can access Jodit's instance by simply accessing its editor property.

@odaiderawi
Copy link
Author

odaiderawi commented Apr 7, 2021

@vladimyr Im trying to insertHTML (img) to the editor from other component but can not use editor.selection.insertHTML(img) function.

@WendellAdriel
Copy link
Owner

Hello @odaiderawi, I don't know if I understood well what you're trying, but do you want to change the jodit editor from another Vue component? If so, you can use events for that, also you can use refs. It would be easier if you can share a code example.

@WendellAdriel
Copy link
Owner

Closing due to inactivity.

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

3 participants