designertool 0.45.0 → 0.47.0
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/designertool.js +5 -5
- package/package.json +1 -1
package/dist/designertool.js
CHANGED
|
@@ -8978,8 +8978,7 @@ const useHtmlGenerator = () => {
|
|
|
8978
8978
|
importHtmlTemplate(ye) {
|
|
8979
8979
|
ye = ye.replace(/\s*contenteditable(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+))?/gi, ""), this.historyStore.savePreviousStep();
|
|
8980
8980
|
const { body: ae, getStyleByKey: Ne, setHtml: rt } = useHtmlGenerator();
|
|
8981
|
-
rt(ye
|
|
8982
|
-
`, "").replaceAll(" ", "").replaceAll(" ", ""));
|
|
8981
|
+
rt(ye);
|
|
8983
8982
|
let ft = {};
|
|
8984
8983
|
const pt = ae.querySelector("#canvas-front, #canvas-back");
|
|
8985
8984
|
if (pt) {
|
|
@@ -27980,7 +27979,7 @@ const _hoisted_1$M = ["is-dragging"], _sfc_main$N = /* @__PURE__ */ defineCompon
|
|
|
27980
27979
|
}), or = computed({
|
|
27981
27980
|
get() {
|
|
27982
27981
|
if (!Pt.value) return Qt.value[0];
|
|
27983
|
-
const { state: _r } = Pt.value, { $from: $r } = _r.selection, Br = $r.marks().find((jr) => jr.type.name === "textStyle"), qr = (Br == null ? void 0 : Br.attrs.fontFamily) || "Arial";
|
|
27982
|
+
const { state: _r } = Pt.value, { $from: $r } = _r.selection, Br = $r.marks().find((jr) => jr.type.name === "textStyle"), qr = (Br == null ? void 0 : Br.attrs.fontFamily) || "Arial".replace(/['"]/g, "");
|
|
27984
27983
|
return Qt.value.find((jr) => jr.name === qr) || Qt.value[0];
|
|
27985
27984
|
},
|
|
27986
27985
|
set(_r) {
|
|
@@ -53793,7 +53792,8 @@ const FontSize = Extension.create({
|
|
|
53793
53792
|
underline: bt.value.isActive("underline"),
|
|
53794
53793
|
strike: bt.value.isActive("strike"),
|
|
53795
53794
|
color: (or == null ? void 0 : or.attrs.color) || "#000000",
|
|
53796
|
-
|
|
53795
|
+
// Added this fix since the 2 worded font family names were not loading correctly in the font selector when the text was higlighted
|
|
53796
|
+
fontFamily: ((or == null ? void 0 : or.attrs.fontFamily) || "Arial").replace(/['"]/g, ""),
|
|
53797
53797
|
fontSize: (or == null ? void 0 : or.attrs.fontSize) || null,
|
|
53798
53798
|
textAlign: bt.value.getAttributes("paragraph").textAlign || "left"
|
|
53799
53799
|
};
|
|
@@ -53917,7 +53917,7 @@ const FontSize = Extension.create({
|
|
|
53917
53917
|
}, null, 8, ["editor", "style"])) : createCommentVNode("", !0)
|
|
53918
53918
|
], 8, _hoisted_1$e));
|
|
53919
53919
|
}
|
|
53920
|
-
}), _style_0$a = ".tiptap-editor[data-v-
|
|
53920
|
+
}), _style_0$a = ".tiptap-editor[data-v-1e83c726]{width:100%;height:100%;position:relative;z-index:10}[data-v-1e83c726] .ProseMirror{outline:none;width:100%;height:100%;padding:0;margin:0;user-select:text;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text}[data-v-1e83c726] .ProseMirror p{margin:0;padding:0}[data-v-1e83c726] .ProseMirror *{user-select:text;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text}.tiptap-editor[data-editable=true][data-v-1e83c726]{pointer-events:all;position:relative;z-index:1000}.tiptap-editor[data-editable=true][data-v-1e83c726] .ProseMirror{cursor:text!important;position:relative;z-index:1001}.tiptap-editor[data-editable=false][data-v-1e83c726]{pointer-events:all;cursor:move!important}.tiptap-editor[data-editable=false][data-v-1e83c726] .ProseMirror{cursor:move!important;user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important}[data-v-1e83c726] .selection{background:#3b82f633;border-radius:2px}.tiptap-editor[data-v-1e83c726]{text-wrap:nowrap}", TipTapEditor = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["styles", [_style_0$a]], ["__scopeId", "data-v-1e83c726"]]), _hoisted_1$d = ["innerHTML"], _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
53921
53921
|
__name: "Text",
|
|
53922
53922
|
props: {
|
|
53923
53923
|
id: { type: Number }
|