@paroicms/tiptap-editor-plugin 1.2.3 → 1.2.5
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.
|
@@ -6,6 +6,10 @@ import Document from "@tiptap/extension-document";
|
|
|
6
6
|
import { BulletList, ListItem, OrderedList } from "@tiptap/extension-list";
|
|
7
7
|
import Subscript from "@tiptap/extension-subscript";
|
|
8
8
|
import Superscript from "@tiptap/extension-superscript";
|
|
9
|
+
import { TableCell } from "@tiptap/extension-table/cell";
|
|
10
|
+
import { TableHeader } from "@tiptap/extension-table/header";
|
|
11
|
+
import { TableRow } from "@tiptap/extension-table/row";
|
|
12
|
+
import { Table } from "@tiptap/extension-table/table";
|
|
9
13
|
import TextAlign from "@tiptap/extension-text-align";
|
|
10
14
|
import { TextStyle } from "@tiptap/extension-text-style";
|
|
11
15
|
import StarterKit from "@tiptap/starter-kit";
|
|
@@ -144,6 +148,10 @@ function renderTiptapToHtml(json, service, mediaMap, documentMap, options) {
|
|
|
144
148
|
OrderedList,
|
|
145
149
|
CustomListItem,
|
|
146
150
|
CustomLink,
|
|
151
|
+
Table,
|
|
152
|
+
TableRow,
|
|
153
|
+
TableHeader,
|
|
154
|
+
TableCell,
|
|
147
155
|
...(hasCodeInConf ? [Code, CodeBlockLowlight] : []),
|
|
148
156
|
TextAlign.configure({
|
|
149
157
|
types: ["heading", "paragraph"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/tiptap-editor-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Tiptap editor plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -27,17 +27,18 @@
|
|
|
27
27
|
"test:watch": "vitest"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@paroicms/markdown-to-tiptap-json": "0.2.
|
|
31
|
-
"@paroicms/script-lib": "0.3.
|
|
32
|
-
"@tiptap/core": "3.
|
|
33
|
-
"@tiptap/extension-code": "3.
|
|
34
|
-
"@tiptap/extension-code-block-lowlight": "3.
|
|
35
|
-
"@tiptap/extension-subscript": "3.
|
|
36
|
-
"@tiptap/extension-superscript": "3.
|
|
37
|
-
"@tiptap/extension-
|
|
38
|
-
"@tiptap/extension-text-
|
|
39
|
-
"@tiptap/
|
|
40
|
-
"@tiptap/
|
|
30
|
+
"@paroicms/markdown-to-tiptap-json": "0.2.8",
|
|
31
|
+
"@paroicms/script-lib": "0.3.15",
|
|
32
|
+
"@tiptap/core": "3.16.0",
|
|
33
|
+
"@tiptap/extension-code": "3.16.0",
|
|
34
|
+
"@tiptap/extension-code-block-lowlight": "3.16.0",
|
|
35
|
+
"@tiptap/extension-subscript": "3.16.0",
|
|
36
|
+
"@tiptap/extension-superscript": "3.16.0",
|
|
37
|
+
"@tiptap/extension-table": "3.16.0",
|
|
38
|
+
"@tiptap/extension-text-align": "3.16.0",
|
|
39
|
+
"@tiptap/extension-text-style": "3.16.0",
|
|
40
|
+
"@tiptap/starter-kit": "3.16.0",
|
|
41
|
+
"@tiptap/static-renderer": "3.16.0",
|
|
41
42
|
"arktype": "~2.1.29"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
@@ -45,12 +46,12 @@
|
|
|
45
46
|
"@paroicms/public-server-lib": "0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@paroicms/public-anywhere-lib": "0.41.
|
|
49
|
-
"@paroicms/public-server-lib": "0.
|
|
49
|
+
"@paroicms/public-anywhere-lib": "0.41.3",
|
|
50
|
+
"@paroicms/public-server-lib": "0.51.0",
|
|
50
51
|
"@types/node": "~24.10.7",
|
|
51
52
|
"rimraf": "~6.1.2",
|
|
52
53
|
"typescript": "~5.9.3",
|
|
53
|
-
"vitest": "~4.0.
|
|
54
|
+
"vitest": "~4.0.17"
|
|
54
55
|
},
|
|
55
56
|
"type": "module",
|
|
56
57
|
"main": "backend/dist/index.js",
|
|
@@ -1,71 +1,80 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
._text,
|
|
2
|
+
.Text {
|
|
3
|
+
.Fig {
|
|
4
|
+
display: table;
|
|
5
|
+
margin: 0;
|
|
6
|
+
}
|
|
5
7
|
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
8
|
+
.Fig.left {
|
|
9
|
+
float: left;
|
|
10
|
+
margin: 5px 20px 10px 0;
|
|
11
|
+
}
|
|
10
12
|
|
|
11
|
-
.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
.Fig.right {
|
|
14
|
+
float: right;
|
|
15
|
+
margin: 5px 0 10px 20px;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
18
|
+
.Fig.center {
|
|
19
|
+
clear: both;
|
|
20
|
+
margin: 20px auto;
|
|
21
|
+
}
|
|
20
22
|
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
23
|
+
.Fig-media {
|
|
24
|
+
display: block;
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
height: auto;
|
|
27
|
+
}
|
|
26
28
|
|
|
27
|
-
.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
29
|
+
.Fig-caption {
|
|
30
|
+
display: table-caption;
|
|
31
|
+
margin-top: 8px;
|
|
32
|
+
font-size: 0.875em;
|
|
33
|
+
text-align: center;
|
|
34
|
+
caption-side: bottom;
|
|
35
|
+
opacity: 0.6;
|
|
36
|
+
}
|
|
35
37
|
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
}
|
|
38
|
+
.Fig a {
|
|
39
|
+
display: block;
|
|
40
|
+
}
|
|
39
41
|
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
}
|
|
42
|
+
.Fig a:hover {
|
|
43
|
+
opacity: 0.9;
|
|
44
|
+
}
|
|
43
45
|
|
|
44
|
-
.
|
|
45
|
-
|
|
46
|
-
}
|
|
46
|
+
.text-align-center {
|
|
47
|
+
text-align: center;
|
|
48
|
+
}
|
|
47
49
|
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
}
|
|
50
|
+
.text-align-right {
|
|
51
|
+
text-align: right;
|
|
52
|
+
}
|
|
51
53
|
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
}
|
|
54
|
+
.text-align-justify {
|
|
55
|
+
text-align: justify;
|
|
56
|
+
}
|
|
55
57
|
|
|
56
|
-
.
|
|
57
|
-
|
|
58
|
-
}
|
|
58
|
+
.text-size-small {
|
|
59
|
+
font-size: 0.5625em;
|
|
60
|
+
}
|
|
59
61
|
|
|
60
|
-
.
|
|
61
|
-
|
|
62
|
-
}
|
|
62
|
+
.text-size-large {
|
|
63
|
+
font-size: 2em;
|
|
64
|
+
}
|
|
63
65
|
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
+
.text-size-huge {
|
|
67
|
+
font-size: 4em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
iframe {
|
|
71
|
+
display: block;
|
|
72
|
+
margin: 20px auto;
|
|
73
|
+
}
|
|
66
74
|
}
|
|
67
75
|
|
|
68
|
-
.Text
|
|
76
|
+
.Text::after {
|
|
77
|
+
clear: both;
|
|
69
78
|
display: block;
|
|
70
|
-
|
|
79
|
+
content: "";
|
|
71
80
|
}
|