We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to set the cursor of my element based on the editor. Specifically this:
const style = editor.isEditable ? 'cursor:pointer;' : undefined return [ 'div', {style}, [....] ]
The editor is not included in this or the method parameter.
this
Include editor in the context or this.
renderHTML({editor}) { }
or
renderHTML({}) { const editor = this.editor }
I am grabbing the editor from another plugin method that is called before renderHTML, and then storing it outside the plugin.
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What problem are you facing?
I am trying to set the cursor of my element based on the editor. Specifically this:
The editor is not included in
this
or the method parameter.What’s the solution you would like to see?
Include editor in the context or this.
or
What alternatives did you consider?
I am grabbing the editor from another plugin method that is called before renderHTML, and then storing it outside the plugin.
Anything to add? (optional)
No response
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: