@tailor-cms/ce-html-edit 0.0.13 → 0.0.14
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 +4 -2
- package/dist/index.css +20 -20
- package/dist/index.js +4 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -25726,7 +25726,9 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
25726
25726
|
() => props.element.data.content,
|
|
25727
25727
|
(value) => {
|
|
25728
25728
|
var _a;
|
|
25729
|
-
|
|
25729
|
+
if (!editor.value) return;
|
|
25730
|
+
const isSame = editor.value.getHTML() === value;
|
|
25731
|
+
return !isSame && ((_a = editor.value) == null ? void 0 : _a.commands.setContent(value, false));
|
|
25730
25732
|
}
|
|
25731
25733
|
);
|
|
25732
25734
|
return (_ctx, _cache) => {
|
|
@@ -25747,7 +25749,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
25747
25749
|
};
|
|
25748
25750
|
}
|
|
25749
25751
|
});
|
|
25750
|
-
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
25752
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-8f503238"]]);
|
|
25751
25753
|
var isURL$1 = { exports: {} };
|
|
25752
25754
|
var assertString = { exports: {} };
|
|
25753
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-8f503238] {
|
|
15
15
|
text-align: left;
|
|
16
16
|
}
|
|
17
|
-
[data-v-
|
|
17
|
+
[data-v-8f503238] .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-8f503238] .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-8f503238] .ProseMirror > * + * {
|
|
32
32
|
margin-top: 0.75em;
|
|
33
33
|
}
|
|
34
|
-
[data-v-
|
|
34
|
+
[data-v-8f503238] .ProseMirror ul,[data-v-8f503238] .ProseMirror ol {
|
|
35
35
|
padding: 0 1rem;
|
|
36
36
|
}
|
|
37
|
-
[data-v-
|
|
37
|
+
[data-v-8f503238] .ProseMirror h1,[data-v-8f503238] .ProseMirror h2,[data-v-8f503238] .ProseMirror h3,[data-v-8f503238] .ProseMirror h4,[data-v-8f503238] .ProseMirror h5,[data-v-8f503238] .ProseMirror h6 {
|
|
38
38
|
line-height: 1.1;
|
|
39
39
|
}
|
|
40
|
-
[data-v-
|
|
40
|
+
[data-v-8f503238] .ProseMirror code {
|
|
41
41
|
background-color: rgba(97, 97, 97, 0.1);
|
|
42
42
|
color: #616161;
|
|
43
43
|
}
|
|
44
|
-
[data-v-
|
|
44
|
+
[data-v-8f503238] .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-8f503238] .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-8f503238] .ProseMirror img {
|
|
57
57
|
max-width: 100%;
|
|
58
58
|
height: auto;
|
|
59
59
|
}
|
|
60
|
-
[data-v-
|
|
60
|
+
[data-v-8f503238] .ProseMirror img.ProseMirror-selectednode {
|
|
61
61
|
outline: 2px solid #68cef8;
|
|
62
62
|
}
|
|
63
|
-
[data-v-
|
|
63
|
+
[data-v-8f503238] .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-8f503238] .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-8f503238] .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-8f503238] .ProseMirror table td,[data-v-8f503238] .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-8f503238] .ProseMirror table td > *,[data-v-8f503238] .ProseMirror table th > * {
|
|
88
88
|
margin-bottom: 0;
|
|
89
89
|
}
|
|
90
|
-
[data-v-
|
|
90
|
+
[data-v-8f503238] .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-8f503238] .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-8f503238] .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-8f503238] .ProseMirror table p {
|
|
116
116
|
margin: 0;
|
|
117
117
|
}.v-sheet[data-v-8e6263e8] {
|
|
118
118
|
display: flex;
|
package/dist/index.js
CHANGED
|
@@ -25724,7 +25724,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
25724
25724
|
() => props.element.data.content,
|
|
25725
25725
|
(value) => {
|
|
25726
25726
|
var _a;
|
|
25727
|
-
|
|
25727
|
+
if (!editor.value) return;
|
|
25728
|
+
const isSame = editor.value.getHTML() === value;
|
|
25729
|
+
return !isSame && ((_a = editor.value) == null ? void 0 : _a.commands.setContent(value, false));
|
|
25728
25730
|
}
|
|
25729
25731
|
);
|
|
25730
25732
|
return (_ctx, _cache) => {
|
|
@@ -25745,7 +25747,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
25745
25747
|
};
|
|
25746
25748
|
}
|
|
25747
25749
|
});
|
|
25748
|
-
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
25750
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-8f503238"]]);
|
|
25749
25751
|
var isURL$1 = { exports: {} };
|
|
25750
25752
|
var assertString = { exports: {} };
|
|
25751
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.14",
|
|
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.14"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@tiptap/extension-color": "^2.2.3",
|