How to transfer data from a custom component added to tiptap editor #48
-
I've added a custom component to my tiptap editor taskItem This is used to assign tasks to the users. Problems I'm facing:
Getting different id's for all the taskItems but those are getting updated and changed on every change made to the editor. also tried leaving it empty over here and adding the uuid in the addNodeView() function, but getting empty attribute value for data-userid ` addNodeView() { // return statement Basic Stackblitz link: https://stackblitz.com/edit/ngx-tiptap-mentions-niuc7z?file=src%2Fapp%2Fadd-modal%2Fadd-modal.component.ts,src%2Fapp%2Fadd-modal%2Fadd-modal.component.html,src%2Fapp%2Fadd-modal%2Fadd-modal.component.css This is all I could think of. Do you have a better solution / any modifications to the above mentioned ones that can help with our case. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I am just seeing this. I missed the notification. Are you still facing issues? |
Beta Was this translation helpful? Give feedback.
Hi, thanks for replying. I'm not facing this issue anymore. I'm able to transfer data using uniqueId that is mapped to every list item.