How to get textContent of link with tiptap editor?
If I’m using tiptap editor and, I have the cursor in the middle of a link, I can use editor.getAttributes('link')
to get the link attributes, but how do I get the text contents of that element?
If I’m using tiptap editor and, I have the cursor in the middle of a link, I can use editor.getAttributes('link')
to get the link attributes, but how do I get the text contents of that element?