Skip to content

Mention Extension Not Rendering Suggestions When Editor Markup Changes #5611

Closed Answered by kart-c
zdychacek asked this question in Questions & Help
Discussion options

You must be logged in to vote

The useEditor hook takes a dependency array to watch for changes. In your case, you can add the isEditable in the dependency array to resolve the issue Updated sandbox.

Although I would suggest an alternative approach. For enabling and disabling the editor instance provides a method called setEditable which takes a boolean as an argument.
For reference - https://tiptap.dev/docs/editor/api/editor#seteditable

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zdychacek
Comment options

@kart-c
Comment options

Answer selected by zdychacek
@zdychacek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants