@brightsideoy/kama 0.1.0-alpha.45 → 0.1.0-alpha.47
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/defaults/definitions/nodes/article.yaml +1 -0
- package/defaults/definitions/nodes/event.yaml +1 -0
- package/defaults/definitions/nodes/page.yaml +1 -0
- package/defaults/definitions/nodes/product.yaml +1 -0
- package/definitions/editor/default.ts +1 -1
- package/definitions/editor/header.ts +3 -0
- package/definitions/editor/minimal.ts +1 -1
- package/dist/assets/index-B_TGaK35.js +1313 -0
- package/dist/assets/index-CPl6YZBs.css +1 -0
- package/dist/index.html +2 -2
- package/dist/index.js +1211 -1159
- package/package.json +1 -1
- package/dist/assets/index-BPp2NMmn.js +0 -1309
- package/dist/assets/index-BZoU1Uyh.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import StarterKit from "@tiptap/starter-kit";
|
|
2
|
-
import Link from "@tiptap/extension-link";
|
|
3
2
|
import type { RteProfile } from "../../utils/rteProfiles";
|
|
3
|
+
import Link from "../../src/utils/CmsLink";
|
|
4
4
|
|
|
5
5
|
export const profile: RteProfile = {
|
|
6
6
|
extensions: [StarterKit, Link.configure({ openOnClick: false })],
|
|
@@ -4,6 +4,7 @@ import Document from "@tiptap/extension-document";
|
|
|
4
4
|
import Subscript from "@tiptap/extension-subscript";
|
|
5
5
|
import Superscript from "@tiptap/extension-superscript";
|
|
6
6
|
import type { RteProfile } from "../../src/utils/rteProfiles";
|
|
7
|
+
import Link from "../../src/utils/CmsLink";
|
|
7
8
|
|
|
8
9
|
// Custom document node forcing default top-level block to be a heading (H2)
|
|
9
10
|
const CustomDocument = Document.extend({
|
|
@@ -19,6 +20,7 @@ export const profile: RteProfile = {
|
|
|
19
20
|
}),
|
|
20
21
|
Subscript.configure(),
|
|
21
22
|
Superscript.configure(),
|
|
23
|
+
Link.configure({ openOnClick: false }),
|
|
22
24
|
],
|
|
23
25
|
toolbar: [
|
|
24
26
|
"heading-1",
|
|
@@ -29,5 +31,6 @@ export const profile: RteProfile = {
|
|
|
29
31
|
"italic",
|
|
30
32
|
"superscript",
|
|
31
33
|
"subscript",
|
|
34
|
+
"link",
|
|
32
35
|
],
|
|
33
36
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import StarterKit from "@tiptap/starter-kit";
|
|
2
|
-
import Link from "@tiptap/extension-link";
|
|
3
2
|
import type { RteProfile } from "../../utils/rteProfiles";
|
|
3
|
+
import Link from "../../src/utils/CmsLink";
|
|
4
4
|
|
|
5
5
|
export const profile: RteProfile = {
|
|
6
6
|
extensions: [StarterKit, Link.configure({ openOnClick: false })],
|