[Bug]: Custom Attributes for table in editor.getHTML() String but not in content component (ProseMirror) #5071
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
core, vue-2, extension-table, ...
What Tiptap version are you using?
2.3.0
What’s the bug you are facing?
I have extended table with custom attributes:
This attributes are present in the HTML content via editor.getHTML() but in the rendered editor content component (ProseMirror) they are not. Therefore the editor is not showing the table correctly.
editor.getHTML():
<table border="1px" cellpadding="1" style="width: 300px; minWidth: 75px">
html in the content component:
<table style="min-width: 75px">
You can argue that border and cellpadding attributes are depreceated (I did that because of compatibility reasons), but what about the style attributes like width and such.
What browser are you using?
Chrome
Code example
No response
What did you expect to happen?
The table in the editor content component is rendered correctly (with custom attributes)
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: