@cyberyozh/text-editor 0.1.14 → 0.1.15

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/editor.mjs CHANGED
@@ -6469,6 +6469,7 @@ var Tiptap = (props) => {
6469
6469
 
6470
6470
  // src/utils/html-to-tiptap-content.ts
6471
6471
  import { generateJSON } from "@tiptap/core";
6472
+ import { TableKit as TableKit2 } from "@tiptap/extension-table";
6472
6473
  function isJSONContent(value) {
6473
6474
  return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
6474
6475
  }
@@ -6489,7 +6490,7 @@ function htmlToTiptapContent(content) {
6489
6490
  return { type: "doc", content: [{ type: "paragraph" }] };
6490
6491
  }
6491
6492
  const sharedExtensions = getSharedExtensions();
6492
- const extensions = [...sharedExtensions, BaseFigure];
6493
+ const extensions = [...sharedExtensions, BaseFigure, TableKit2, BaseCodeBlock];
6493
6494
  try {
6494
6495
  return generateJSON(content, extensions);
6495
6496
  } catch (error) {