Closed andrei-cacio closed 5 months ago
I have the same problem. Who can help ?
Any updates on this one? I also have the same issue after extending Header class.
+1
+1
Dose the following work?
- class Table extends ContainerBlot {}
+ class Table extends ContainerBlot {
+ optimize(context);
+ if (this.domNode.tagName !== this.statics.tagName[0]) {
+ this.replaceWith(this.statics.blotName);
+ }
+ }
- Table.tagName = 'TABLE';
+ Table.tagName = ['TABLE'. 'T'];
see also https://github.com/quilljs/quill/blob/develop/formats/bold.js
Is there any update on this issue?
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide :pray:
I am trying to understand how blots work and I wanted to recreate step by step the Table example from the parchment repo. For now I wrote the following code:
and the main node on which Quill is instantiated has the following content:
and I get the following error:
Steps for Reproduction
-
Expected behavior:
I would expect only the
<table><tbody></tbody></table>
to render.Actual behavior:
Error
Platforms:
Chrome MacOS Mojave
Version:
2.0.0-dev