vue-froala-wysiwyg icon indicating copy to clipboard operation
vue-froala-wysiwyg copied to clipboard

Unable to get Editor Instance on Focus Event

Open julianlaibach opened this issue 2 years ago • 1 comments

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!

julianlaibach avatar Sep 14 '22 08:09 julianlaibach

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

caesar0731 avatar Mar 23 '23 00:03 caesar0731