Classes and closing tags are repeating in custom extension TipTap
We've created and extended some extensions for the #awcodes-tiptap-editor. The problem we're facing now is that everytime we save the class is added again to the already existing element. Also when we save it apears it adds multiple closing tags at the end.
It appears it does this only for the table tags.
Is this a known problem? If so, how can we fix it?
Preview of how the code is being saved
3 Replies
My own code:
resources > js > tiptap > extensions.js
App > TiptapExtensions > Table.php
Best to ask in #awcodes-tiptap-editor
I think the issue is the underlying Tiptap js extension which has not context of classes. But more importantly, why do you need a class on it? There’s other ways to style it if that’s the use case.