@tiptap/core 2.6.5 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1764,7 +1764,11 @@
1764
1764
  if (isArrayContent) {
1765
1765
  return model.Fragment.fromArray(content.map(item => schema.nodeFromJSON(item)));
1766
1766
  }
1767
- return schema.nodeFromJSON(content);
1767
+ const node = schema.nodeFromJSON(content);
1768
+ if (options.errorOnInvalidContent) {
1769
+ node.check();
1770
+ }
1771
+ return node;
1768
1772
  }
1769
1773
  catch (error) {
1770
1774
  if (options.errorOnInvalidContent) {