Skip to content

Commit 75d694d

Browse files
Update tiptap, configure TrailingNode (#2817)
* Update tiptap, configure TrailingNode * remove global editor assignment
1 parent c5e569b commit 75d694d

File tree

3 files changed

+249
-257
lines changed

3 files changed

+249
-257
lines changed

frontends/ol-components/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@
3030
"@radix-ui/react-popover": "^1.1.15",
3131
"@remixicon/react": "^4.2.0",
3232
"@testing-library/dom": "^10.4.0",
33-
"@tiptap/core": "^3.11.0",
34-
"@tiptap/extension-document": "^3.11.1",
35-
"@tiptap/extension-heading": "^3.11.1",
36-
"@tiptap/extension-highlight": "^3.11.0",
37-
"@tiptap/extension-horizontal-rule": "^3.11.0",
38-
"@tiptap/extension-image": "^3.11.0",
39-
"@tiptap/extension-list": "^3.11.0",
40-
"@tiptap/extension-subscript": "^3.11.0",
41-
"@tiptap/extension-superscript": "^3.11.0",
42-
"@tiptap/extension-text-align": "^3.11.0",
43-
"@tiptap/extension-typography": "^3.11.0",
44-
"@tiptap/extensions": "^3.11.0",
45-
"@tiptap/pm": "^3.11.0",
46-
"@tiptap/react": "^3.11.0",
47-
"@tiptap/starter-kit": "^3.11.0",
33+
"@tiptap/core": "^3.13.0",
34+
"@tiptap/extension-document": "^3.13.0",
35+
"@tiptap/extension-heading": "^3.13.0",
36+
"@tiptap/extension-highlight": "^3.13.0",
37+
"@tiptap/extension-horizontal-rule": "^3.13.0",
38+
"@tiptap/extension-image": "^3.13.0",
39+
"@tiptap/extension-list": "^3.13.0",
40+
"@tiptap/extension-subscript": "^3.13.0",
41+
"@tiptap/extension-superscript": "^3.13.0",
42+
"@tiptap/extension-text-align": "^3.13.0",
43+
"@tiptap/extension-typography": "^3.13.0",
44+
"@tiptap/extensions": "^3.13.0",
45+
"@tiptap/pm": "^3.13.0",
46+
"@tiptap/react": "^3.13.0",
47+
"@tiptap/starter-kit": "^3.13.0",
4848
"@types/react-dom": "^19.2.3",
4949
"@types/tinycolor2": "^1.4.6",
5050
"api": "workspace:*",

frontends/ol-components/src/components/TiptapEditor/ArticleEditor.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ const ArticleEditor = ({ onSave, readOnly, article }: ArticleEditorProps) => {
255255
openOnClick: false,
256256
enableClickSelection: true,
257257
},
258+
trailingNode: {
259+
node: "paragraph",
260+
},
258261
}),
259262
Heading.configure({
260263
levels: [1, 2, 3, 4, 5, 6],

0 commit comments

Comments
 (0)