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

Unable to get Editor Instance on Focus Event #207

Open
julianlaibach opened this issue Sep 14, 2022 · 1 comment
Open

Unable to get Editor Instance on Focus Event #207

julianlaibach opened this issue Sep 14, 2022 · 1 comment

Comments

@julianlaibach
Copy link

Im using the following Script

focus: function (event, editor) {
    console.log('editor', editor);
    console.log('element', this)
}

And the Editor is undefined, how am i able to do something like:

editor.image.insert('example.jpeg')

So i need to access the Editor Instance inside the Focus Event. Thanks for Advice!

@caesar0731
Copy link

editor doesn't exist
so you can use
editor.image.insert('example.jpeg') -> this.image.insert('example.jpeg')

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

2 participants