@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.js
CHANGED
|
@@ -2589,6 +2589,7 @@ function TiptapRender({ content, getImageById }) {
|
|
|
2589
2589
|
|
|
2590
2590
|
// src/utils/html-to-tiptap-content.ts
|
|
2591
2591
|
var import_core16 = require("@tiptap/core");
|
|
2592
|
+
var import_extension_table2 = require("@tiptap/extension-table");
|
|
2592
2593
|
function isJSONContent(value) {
|
|
2593
2594
|
return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
|
|
2594
2595
|
}
|
|
@@ -2609,7 +2610,7 @@ function htmlToTiptapContent(content) {
|
|
|
2609
2610
|
return { type: "doc", content: [{ type: "paragraph" }] };
|
|
2610
2611
|
}
|
|
2611
2612
|
const sharedExtensions = getSharedExtensions();
|
|
2612
|
-
const extensions = [...sharedExtensions, BaseFigure];
|
|
2613
|
+
const extensions = [...sharedExtensions, BaseFigure, import_extension_table2.TableKit, BaseCodeBlock];
|
|
2613
2614
|
try {
|
|
2614
2615
|
return (0, import_core16.generateJSON)(content, extensions);
|
|
2615
2616
|
} catch (error) {
|