@cyberyozh/text-editor 0.1.13 → 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.js +4 -1
- package/dist/editor.js.map +1 -1
- package/dist/editor.mjs +4 -1
- package/dist/editor.mjs.map +1 -1
- package/dist/render.js +2 -1
- package/dist/render.js.map +1 -1
- package/dist/render.mjs +2 -1
- package/dist/render.mjs.map +1 -1
- package/package.json +35 -35
- package/src/editor/dialogs/image-dialog/image-dialog.tsx +1 -0
- package/src/extensions/editor/figure.ts +1 -0
- package/src/utils/html-to-tiptap-content.ts +3 -1
package/dist/render.mjs
CHANGED
|
@@ -2552,6 +2552,7 @@ function TiptapRender({ content, getImageById }) {
|
|
|
2552
2552
|
|
|
2553
2553
|
// src/utils/html-to-tiptap-content.ts
|
|
2554
2554
|
import { generateJSON } from "@tiptap/core";
|
|
2555
|
+
import { TableKit as TableKit2 } from "@tiptap/extension-table";
|
|
2555
2556
|
function isJSONContent(value) {
|
|
2556
2557
|
return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
|
|
2557
2558
|
}
|
|
@@ -2572,7 +2573,7 @@ function htmlToTiptapContent(content) {
|
|
|
2572
2573
|
return { type: "doc", content: [{ type: "paragraph" }] };
|
|
2573
2574
|
}
|
|
2574
2575
|
const sharedExtensions = getSharedExtensions();
|
|
2575
|
-
const extensions = [...sharedExtensions, BaseFigure];
|
|
2576
|
+
const extensions = [...sharedExtensions, BaseFigure, TableKit2, BaseCodeBlock];
|
|
2576
2577
|
try {
|
|
2577
2578
|
return generateJSON(content, extensions);
|
|
2578
2579
|
} catch (error) {
|