Make Image in a custom extension / node resizable. #5336
Unanswered
CodeLine6
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am building a notes app where I am using Tiptap editor. For the app I picked a custom extension for figure node given here. To resize the image I am using extension given here.
Now the resizer component works fine with native Image extension but not with Figure extension. To select element for resizing it makes use of ".ProseMirror-selectednode" class which is assigned to a node when it is selected in editor and in case of image node, it gets automatically selected when it is clicked upon.
In case of figure node, the resizer appears when I select the node but as soon as I try to resize the image within figure, the resizer disappears as the figure node loses selection and hence the class ".ProseMirror-selectednode".
Please let me know how can I implement resizing successfully.
Beta Was this translation helpful? Give feedback.
All reactions