@tailor-cms/ce-html-edit 0.0.14 → 0.0.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/index.cjs +2 -2
- package/dist/index.css +20 -20
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -25707,7 +25707,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
25707
25707
|
const save = () => {
|
|
25708
25708
|
var _a, _b;
|
|
25709
25709
|
const content = ((_a = editor.value) == null ? void 0 : _a.isEmpty) ? "" : (_b = editor.value) == null ? void 0 : _b.getHTML();
|
|
25710
|
-
return emit("save", { content });
|
|
25710
|
+
return emit("save", { ...props.element.data, content });
|
|
25711
25711
|
};
|
|
25712
25712
|
vue.watch(
|
|
25713
25713
|
() => props.isFocused,
|
|
@@ -25749,7 +25749,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
25749
25749
|
};
|
|
25750
25750
|
}
|
|
25751
25751
|
});
|
|
25752
|
-
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
25752
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9c1f4332"]]);
|
|
25753
25753
|
var isURL$1 = { exports: {} };
|
|
25754
25754
|
var assertString = { exports: {} };
|
|
25755
25755
|
var hasRequiredAssertString;
|
package/dist/index.css
CHANGED
|
@@ -11,72 +11,72 @@
|
|
|
11
11
|
}
|
|
12
12
|
[data-v-e73020ec] .v-btn.v-btn--active {
|
|
13
13
|
color: rgba(var(--v-theme-primary));
|
|
14
|
-
}.tce-container[data-v-
|
|
14
|
+
}.tce-container[data-v-9c1f4332] {
|
|
15
15
|
text-align: left;
|
|
16
16
|
}
|
|
17
|
-
[data-v-
|
|
17
|
+
[data-v-9c1f4332] .ProseMirror {
|
|
18
18
|
min-height: 5rem;
|
|
19
19
|
padding: 0.5rem;
|
|
20
20
|
font-family: Arial, Helvetica, sans-serif;
|
|
21
21
|
font-size: 1rem;
|
|
22
22
|
outline: none;
|
|
23
23
|
}
|
|
24
|
-
[data-v-
|
|
24
|
+
[data-v-9c1f4332] .ProseMirror p.is-editor-empty:first-child::before {
|
|
25
25
|
content: attr(data-placeholder);
|
|
26
26
|
height: 0;
|
|
27
27
|
opacity: 0.5;
|
|
28
28
|
float: left;
|
|
29
29
|
pointer-events: none;
|
|
30
30
|
}
|
|
31
|
-
[data-v-
|
|
31
|
+
[data-v-9c1f4332] .ProseMirror > * + * {
|
|
32
32
|
margin-top: 0.75em;
|
|
33
33
|
}
|
|
34
|
-
[data-v-
|
|
34
|
+
[data-v-9c1f4332] .ProseMirror ul,[data-v-9c1f4332] .ProseMirror ol {
|
|
35
35
|
padding: 0 1rem;
|
|
36
36
|
}
|
|
37
|
-
[data-v-
|
|
37
|
+
[data-v-9c1f4332] .ProseMirror h1,[data-v-9c1f4332] .ProseMirror h2,[data-v-9c1f4332] .ProseMirror h3,[data-v-9c1f4332] .ProseMirror h4,[data-v-9c1f4332] .ProseMirror h5,[data-v-9c1f4332] .ProseMirror h6 {
|
|
38
38
|
line-height: 1.1;
|
|
39
39
|
}
|
|
40
|
-
[data-v-
|
|
40
|
+
[data-v-9c1f4332] .ProseMirror code {
|
|
41
41
|
background-color: rgba(97, 97, 97, 0.1);
|
|
42
42
|
color: #616161;
|
|
43
43
|
}
|
|
44
|
-
[data-v-
|
|
44
|
+
[data-v-9c1f4332] .ProseMirror pre {
|
|
45
45
|
background: #0d0d0d;
|
|
46
46
|
color: #fff;
|
|
47
47
|
padding: 0.75rem 1rem;
|
|
48
48
|
border-radius: 0.5rem;
|
|
49
49
|
}
|
|
50
|
-
[data-v-
|
|
50
|
+
[data-v-9c1f4332] .ProseMirror pre code {
|
|
51
51
|
color: inherit;
|
|
52
52
|
padding: 0;
|
|
53
53
|
background: none;
|
|
54
54
|
font-size: 0.8rem;
|
|
55
55
|
}
|
|
56
|
-
[data-v-
|
|
56
|
+
[data-v-9c1f4332] .ProseMirror img {
|
|
57
57
|
max-width: 100%;
|
|
58
58
|
height: auto;
|
|
59
59
|
}
|
|
60
|
-
[data-v-
|
|
60
|
+
[data-v-9c1f4332] .ProseMirror img.ProseMirror-selectednode {
|
|
61
61
|
outline: 2px solid #68cef8;
|
|
62
62
|
}
|
|
63
|
-
[data-v-
|
|
63
|
+
[data-v-9c1f4332] .ProseMirror blockquote {
|
|
64
64
|
padding-left: 1rem;
|
|
65
65
|
border-left: 2px solid rgba(13, 13, 13, 0.1);
|
|
66
66
|
}
|
|
67
|
-
[data-v-
|
|
67
|
+
[data-v-9c1f4332] .ProseMirror hr {
|
|
68
68
|
border: none;
|
|
69
69
|
border-top: 2px solid rgba(13, 13, 13, 0.1);
|
|
70
70
|
margin: 2rem 0;
|
|
71
71
|
}
|
|
72
|
-
[data-v-
|
|
72
|
+
[data-v-9c1f4332] .ProseMirror table {
|
|
73
73
|
border-collapse: collapse;
|
|
74
74
|
table-layout: fixed;
|
|
75
75
|
width: 100%;
|
|
76
76
|
margin: 0;
|
|
77
77
|
overflow: hidden;
|
|
78
78
|
}
|
|
79
|
-
[data-v-
|
|
79
|
+
[data-v-9c1f4332] .ProseMirror table td,[data-v-9c1f4332] .ProseMirror table th {
|
|
80
80
|
min-width: 1em;
|
|
81
81
|
border: 2px solid #ced4da;
|
|
82
82
|
padding: 3px 5px;
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
box-sizing: border-box;
|
|
85
85
|
position: relative;
|
|
86
86
|
}
|
|
87
|
-
[data-v-
|
|
87
|
+
[data-v-9c1f4332] .ProseMirror table td > *,[data-v-9c1f4332] .ProseMirror table th > * {
|
|
88
88
|
margin-bottom: 0;
|
|
89
89
|
}
|
|
90
|
-
[data-v-
|
|
90
|
+
[data-v-9c1f4332] .ProseMirror table th {
|
|
91
91
|
font-weight: bold;
|
|
92
92
|
text-align: left;
|
|
93
93
|
background-color: #f1f3f5;
|
|
94
94
|
}
|
|
95
|
-
[data-v-
|
|
95
|
+
[data-v-9c1f4332] .ProseMirror table .selectedCell:after {
|
|
96
96
|
z-index: 2;
|
|
97
97
|
position: absolute;
|
|
98
98
|
content: "";
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
background: rgba(200, 200, 255, 0.4);
|
|
104
104
|
pointer-events: none;
|
|
105
105
|
}
|
|
106
|
-
[data-v-
|
|
106
|
+
[data-v-9c1f4332] .ProseMirror table .column-resize-handle {
|
|
107
107
|
position: absolute;
|
|
108
108
|
right: -2px;
|
|
109
109
|
top: 0;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
background-color: #adf;
|
|
113
113
|
pointer-events: none;
|
|
114
114
|
}
|
|
115
|
-
[data-v-
|
|
115
|
+
[data-v-9c1f4332] .ProseMirror table p {
|
|
116
116
|
margin: 0;
|
|
117
117
|
}.v-sheet[data-v-8e6263e8] {
|
|
118
118
|
display: flex;
|
package/dist/index.js
CHANGED
|
@@ -25705,7 +25705,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
25705
25705
|
const save = () => {
|
|
25706
25706
|
var _a, _b;
|
|
25707
25707
|
const content = ((_a = editor.value) == null ? void 0 : _a.isEmpty) ? "" : (_b = editor.value) == null ? void 0 : _b.getHTML();
|
|
25708
|
-
return emit("save", { content });
|
|
25708
|
+
return emit("save", { ...props.element.data, content });
|
|
25709
25709
|
};
|
|
25710
25710
|
watch(
|
|
25711
25711
|
() => props.isFocused,
|
|
@@ -25747,7 +25747,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
25747
25747
|
};
|
|
25748
25748
|
}
|
|
25749
25749
|
});
|
|
25750
|
-
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
25750
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9c1f4332"]]);
|
|
25751
25751
|
var isURL$1 = { exports: {} };
|
|
25752
25752
|
var assertString = { exports: {} };
|
|
25753
25753
|
var hasRequiredAssertString;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Tailor CMS HTML editor authoring component",
|
|
4
4
|
"author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.15",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typescript": "^5.7.3",
|
|
26
26
|
"vite": "^6.1.0",
|
|
27
27
|
"vue-tsc": "^2.2.0",
|
|
28
|
-
"@tailor-cms/ce-html-manifest": "0.0.
|
|
28
|
+
"@tailor-cms/ce-html-manifest": "0.0.15"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@tiptap/extension-color": "^2.2.3",
|