hisonvue 1.1.3 → 1.1.5
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/{HAccordion-CYdLZCoO.mjs → HAccordion-2BXGsG5B.mjs} +2 -2
- package/dist/{HAccordion-Bc8LHllz.js → HAccordion-BXzQTj-T.js} +1 -1
- package/dist/{HBaggie-XgHTnkp2.js → HBaggie-DP-oXbIt.js} +1 -1
- package/dist/{HBaggie-Ywgz5nvV.mjs → HBaggie-DbUnI6Cg.mjs} +2 -2
- package/dist/{HBanner-BcDU3AwV.js → HBanner-C_RVokKc.js} +1 -1
- package/dist/{HBanner-CidWbYwG.mjs → HBanner-DS1wAGBj.mjs} +2 -2
- package/dist/{HButton-Bf1WiQNr.mjs → HButton-CJZsjgRh.mjs} +2 -2
- package/dist/{HButton-B6af0nzb.js → HButton-EmsUduJx.js} +1 -1
- package/dist/{HCalendar-CQs3-lsy.mjs → HCalendar-BHuielDt.mjs} +468 -458
- package/dist/{HCalendar-BiiLjDq7.js → HCalendar-BQcg95QP.js} +2 -2
- package/dist/{HCaption-CJD8YqTy.mjs → HCaption-B_TLREQt.mjs} +1 -1
- package/dist/{HCaption-DxXZw4pH.js → HCaption-DnnfU-4f.js} +1 -1
- package/dist/HChart-C9gfq-PC.mjs +187 -0
- package/dist/HChart-CPILy-I8.js +1 -0
- package/dist/{HDrawer-C_zCEAoj.mjs → HDrawer-D_kSIGBU.mjs} +35 -37
- package/dist/{HDrawer-QSVck31B.js → HDrawer-tfvUaRKv.js} +1 -1
- package/dist/{HDropdown-CzKF2cyh.mjs → HDropdown-BIPy8aU4.mjs} +2 -2
- package/dist/{HDropdown-l_g96ufU.js → HDropdown-BjUvzvFC.js} +1 -1
- package/dist/{HFileset-B6ezY9_O.mjs → HFileset-BtK0nmzk.mjs} +1 -1
- package/dist/{HFileset-CnM1z10l.js → HFileset-PW9YCJgS.js} +1 -1
- package/dist/{HGap-D9TgBL0P.js → HGap-BbdxTgBt.js} +1 -1
- package/dist/{HGap--qHusiKo.mjs → HGap-CW02Hxpc.mjs} +1 -1
- package/dist/{HGrid-DWFs2PVH.mjs → HGrid-CJ4-xVpR.mjs} +113 -86
- package/dist/HGrid-olge21bD.js +1 -0
- package/dist/{HImagebox-C-kUyV2a.js → HImagebox-AXcA-jAB.js} +1 -1
- package/dist/{HImagebox-B6DkNa0s.mjs → HImagebox-FTiJuOTN.mjs} +1 -1
- package/dist/{HInput-DF_oPvVG.js → HInput-CZ11eUJB.js} +1 -1
- package/dist/{HInput-Dih14jAK.mjs → HInput-Cqo_Tfru.mjs} +1 -1
- package/dist/{HInputGroup-Czqo_DBM.mjs → HInputGroup-SzCxRqaF.mjs} +1 -1
- package/dist/{HInputGroup-CxiRFkpV.js → HInputGroup-zaJVW7RE.js} +1 -1
- package/dist/{HLabel-x3QyAn-P.mjs → HLabel-DEVMDggG.mjs} +7 -3
- package/dist/{HLabel-BFuX1v46.js → HLabel-jZG7tY-0.js} +1 -1
- package/dist/{HLayout-DHwcSj6Y.js → HLayout-Fh65aaVI.js} +1 -1
- package/dist/{HLayout-DbIW32b3.mjs → HLayout-x_jVkIo4.mjs} +1 -1
- package/dist/{HList-CGt8QYPb.js → HList-JIhEylRe.js} +1 -1
- package/dist/{HList-B0_bqe2X.mjs → HList-V-fyd5fw.mjs} +2 -2
- package/dist/{HModal-DaQTId_h.mjs → HModal-B7pME4H2.mjs} +1 -1
- package/dist/{HModal-Bbq2SffE.js → HModal-M0YUil9A.js} +1 -1
- package/dist/HNote-C5nujdV1.js +1 -0
- package/dist/{HNote-BxjGgGT6.mjs → HNote-HqNrL-U2.mjs} +195 -137
- package/dist/{HPagination-OwLtKBDy.js → HPagination-6aWyrTI-.js} +1 -1
- package/dist/{HPagination-BZpSWEEW.mjs → HPagination-h8MaMUIE.mjs} +2 -2
- package/dist/{HParagraph-BiOV9AaX.mjs → HParagraph-CP1IofM4.mjs} +1 -1
- package/dist/{HParagraph-DA30mUOK.js → HParagraph-IvsIOdD1.js} +1 -1
- package/dist/{HPopup-CXsLCjT7.js → HPopup-Cj5IaN9N.js} +1 -1
- package/dist/{HPopup-CSWCs1bC.mjs → HPopup-DUnn4AIb.mjs} +1 -1
- package/dist/{HSpinner-B6mWhGkj.js → HSpinner-HdIJ62aF.js} +1 -1
- package/dist/{HSpinner-DEHdIFhp.mjs → HSpinner-bShjHynQ.mjs} +1 -1
- package/dist/{HTable-BoUCH2Zf.js → HTable-BgZ-XAZx.js} +1 -1
- package/dist/{HTable-By0pF5zV.mjs → HTable-BuGAaqrq.mjs} +1 -1
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.css +1 -1
- package/dist/hisonvue.d.ts +1 -3
- package/dist/hisonvue.es.js +2 -2
- package/dist/{index-BC8m9ivd.mjs → index-BU8h1J_W.mjs} +1 -1
- package/dist/{index-CyZluKOE.js → index-BzCcaeiL.js} +1 -1
- package/dist/{setButtonCssEvent-DzPansSE.mjs → setButtonCssEvent-C-ESkC60.mjs} +1 -1
- package/dist/{setButtonCssEvent-fXHkzhY1.js → setButtonCssEvent-Oy4ojn9y.js} +1 -1
- package/package.json +1 -1
- package/dist/HChart-Br_mONmh.mjs +0 -179
- package/dist/HChart-CLxSeQfB.js +0 -1
- package/dist/HGrid-DZT6UYsc.js +0 -1
- package/dist/HNote-CHa35R5J.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as Z, ref as d, computed as E, onMounted as Q, onBeforeUnmount as p, watch as a, nextTick as ee, triggerRef as te, createElementBlock as ne, openBlock as oe, normalizeStyle as ie, normalizeClass as le, createElementVNode as fe, mergeProps as ce } from "vue";
|
|
2
|
+
import { _ as re, $ as ae, y as b, h as u, g as ue, u as Be, e as ke, t as de, o as w, a as Ce, l as V, F as Ae, v as s, d as R, r as me, c as _e } from "./index-BU8h1J_W.mjs";
|
|
3
|
+
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const ye = {
|
|
5
5
|
/**
|
|
6
6
|
* Unique identifier for the note.
|
|
7
7
|
* - Access methods via `hison.component.getNote(id)`
|
|
@@ -38,7 +38,7 @@ const Ae = {
|
|
|
38
38
|
*/
|
|
39
39
|
editMode: {
|
|
40
40
|
type: String,
|
|
41
|
-
default:
|
|
41
|
+
default: b.editable,
|
|
42
42
|
validator: (e) => ["editable", "disable", "readonly"].includes(e)
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
@@ -49,7 +49,7 @@ const Ae = {
|
|
|
49
49
|
noteModeByDevice: {
|
|
50
50
|
type: String,
|
|
51
51
|
required: !1,
|
|
52
|
-
validator: (e) => e == null ||
|
|
52
|
+
validator: (e) => e == null || ae.includes(e)
|
|
53
53
|
},
|
|
54
54
|
/**
|
|
55
55
|
* Position of the toolbar
|
|
@@ -57,7 +57,7 @@ const Ae = {
|
|
|
57
57
|
toolPosition: {
|
|
58
58
|
type: String,
|
|
59
59
|
required: !1,
|
|
60
|
-
validator: (e) => e == null ||
|
|
60
|
+
validator: (e) => e == null || re.includes(e)
|
|
61
61
|
},
|
|
62
62
|
/**
|
|
63
63
|
* Toolbar Line Count
|
|
@@ -396,7 +396,7 @@ const Ae = {
|
|
|
396
396
|
default: null,
|
|
397
397
|
validator: (e) => e === null || e === "" || !isNaN(+e) && isFinite(+e)
|
|
398
398
|
}
|
|
399
|
-
},
|
|
399
|
+
}, Ie = {
|
|
400
400
|
//textarea event
|
|
401
401
|
textareaBeforeClick: Function,
|
|
402
402
|
textareaAfterClick: Function,
|
|
@@ -758,23 +758,23 @@ const Ae = {
|
|
|
758
758
|
//placeholder event
|
|
759
759
|
placeholderBeforeClick: Function,
|
|
760
760
|
placeholderAfterClick: Function
|
|
761
|
-
},
|
|
761
|
+
}, ve = Z({
|
|
762
762
|
name: "HNote",
|
|
763
763
|
props: {
|
|
764
|
-
...
|
|
765
|
-
...
|
|
764
|
+
...ye,
|
|
765
|
+
...Ie
|
|
766
766
|
},
|
|
767
767
|
emits: ["update:modelValue", "mounted", "responsive-change"],
|
|
768
|
-
setup(e, { emit:
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
if (
|
|
773
|
-
}),
|
|
774
|
-
|
|
775
|
-
),
|
|
768
|
+
setup(e, { emit: F }) {
|
|
769
|
+
const g = u.note, x = d(null), B = d(null), m = e.id ? e.id : ue(), y = `hnote:${m}`, c = d(!1), r = d(!0);
|
|
770
|
+
let L = !1;
|
|
771
|
+
const I = d(e.required), G = E(() => {
|
|
772
|
+
if (I.value) return "hison-note-required";
|
|
773
|
+
}), H = Be(), v = d(e.visible), W = E(() => v.value ? "" : "hison-display-none"), A = d(e.editMode), P = E(() => {
|
|
774
|
+
if (A.value !== b.editable) return `hison-note-${A.value}`;
|
|
775
|
+
}), h = d(!1), _ = d(e.tabIndex !== null && e.tabIndex !== "" ? Number(e.tabIndex) : null), U = (o, n) => {
|
|
776
776
|
if (!o) return;
|
|
777
|
-
const
|
|
777
|
+
const t = [
|
|
778
778
|
"a[href]",
|
|
779
779
|
"area[href]",
|
|
780
780
|
"input:not([disabled])",
|
|
@@ -787,148 +787,206 @@ const Ae = {
|
|
|
787
787
|
"[contenteditable]",
|
|
788
788
|
"[tabindex]"
|
|
789
789
|
].join(",");
|
|
790
|
-
o.querySelectorAll(
|
|
791
|
-
|
|
790
|
+
o.querySelectorAll(t).forEach((f) => {
|
|
791
|
+
n ? f.setAttribute("tabindex", "-1") : f.getAttribute("tabindex") === "-1" && f.removeAttribute("tabindex");
|
|
792
792
|
});
|
|
793
|
-
},
|
|
794
|
-
|
|
793
|
+
}, S = () => {
|
|
794
|
+
var t;
|
|
795
|
+
const o = B.value;
|
|
795
796
|
if (!o) return;
|
|
796
|
-
const t = o._elements.textarea;
|
|
797
|
-
|
|
798
|
-
},
|
|
799
|
-
|
|
800
|
-
},
|
|
801
|
-
|
|
802
|
-
const o =
|
|
803
|
-
|
|
804
|
-
const
|
|
805
|
-
|
|
806
|
-
for (const [
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
797
|
+
const n = (t = o._elements) == null ? void 0 : t.textarea;
|
|
798
|
+
n && (A.value !== b.editable ? (n.removeAttribute("contenteditable"), n.removeAttribute("role"), n.removeAttribute("aria-multiline"), n.removeAttribute("spellcheck"), n.removeAttribute("autocorrect"), U(o, !0)) : (n.setAttribute("contenteditable", "true"), n.setAttribute("role", "textbox"), n.setAttribute("aria-multiline", "true"), n.setAttribute("spellcheck", "true"), n.setAttribute("autocorrect", "true"), U(o, !1)));
|
|
799
|
+
}, D = d([]), j = ["modelValue", "id", "class", "style", "visible", "editMode"], O = d(0), K = () => {
|
|
800
|
+
te(O);
|
|
801
|
+
}, J = E(() => {
|
|
802
|
+
O.value;
|
|
803
|
+
const o = ke(de(e.class) || "", H.value), n = w(o, "color"), t = w(o, "size");
|
|
804
|
+
Ce(o, "col") === -1 && o.push("hison-col-12"), D.value = o;
|
|
805
|
+
const l = {};
|
|
806
|
+
l["data-id"] = m;
|
|
807
|
+
for (const [f, i] of Object.entries(e))
|
|
808
|
+
j.includes(f) || i != null && (l[f.replace(/[A-Z]/g, (k) => "-" + k.toLowerCase())] = String(i));
|
|
809
|
+
if (l["size-level-desktop"] = l["size-level-desktop"] && V.utils.isNumber(l["size-level-desktop"]) ? String(Math.min(Math.max(Number(l["size-level-desktop"]), 1), 9)) : M(3, t), l["size-level-mobile"] = l["size-level-mobile"] && V.utils.isNumber(l["size-level-mobile"]) ? String(Math.min(Math.max(Number(l["size-level-mobile"]), 1), 9)) : M(5, t), n && !l.color && (l.color = n), l.color) {
|
|
810
|
+
const f = Ae(l.color) ?? l.color;
|
|
811
|
+
l["main-color"] = f, delete l.color;
|
|
812
|
+
}
|
|
813
|
+
return (e.invertColor || u.componentStyle.invertColor) && (l["invert-color"] = "true"), l;
|
|
814
|
+
}), M = (o, n) => {
|
|
815
|
+
switch (n = n ?? u.componentStyle.size, n) {
|
|
816
|
+
case s.s:
|
|
812
817
|
o -= 2;
|
|
813
818
|
break;
|
|
814
|
-
case
|
|
819
|
+
case s.m:
|
|
815
820
|
break;
|
|
816
|
-
case
|
|
821
|
+
case s.l:
|
|
817
822
|
o += 2;
|
|
818
823
|
break;
|
|
819
|
-
case
|
|
824
|
+
case s.xl:
|
|
820
825
|
o += 3;
|
|
821
826
|
break;
|
|
822
827
|
}
|
|
823
828
|
return String(Math.min(Math.max(o, 1), 9));
|
|
824
|
-
},
|
|
825
|
-
var n;
|
|
826
|
-
const t = (n = o[0]) == null ? void 0 : n.target;
|
|
827
|
-
!t || !w(t) || j();
|
|
828
|
-
}), w = (o) => {
|
|
829
|
-
var l;
|
|
830
|
-
let t = o;
|
|
831
|
-
for (; !(t instanceof Element); ) t = t.parentNode;
|
|
832
|
-
return ((l = t.closest) == null ? void 0 : l.call(t, "[data-vanillanote]")) || null;
|
|
833
|
-
}, P = (o, t) => {
|
|
834
|
-
if (!o || !t || o.html !== t.html || o.plainText !== t.plainText || JSON.stringify(o.links) !== JSON.stringify(t.links) || JSON.stringify(o.files) !== JSON.stringify(t.files) || JSON.stringify(o.images) !== JSON.stringify(t.images) || JSON.stringify(o.videos) !== JSON.stringify(t.videos)) return !1;
|
|
835
|
-
const l = Object.keys(o.fileObjects || {}), n = Object.keys(t.fileObjects || {});
|
|
836
|
-
if (l.length !== n.length || !l.every((y) => n.includes(y))) return !1;
|
|
837
|
-
const i = Object.keys(o.imageObjects || {}), A = Object.keys(t.imageObjects || {});
|
|
838
|
-
return !(i.length !== A.length || !i.every((y) => A.includes(y)));
|
|
839
|
-
}, j = () => {
|
|
840
|
-
r.value && (T.value = !0, I("update:modelValue", r.value.getNoteData()));
|
|
841
|
-
}, a = () => {
|
|
842
|
-
D(), G(), Y(U);
|
|
843
|
-
}, U = () => {
|
|
829
|
+
}, T = new MutationObserver((o) => {
|
|
844
830
|
var l;
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
831
|
+
const n = (l = o[0]) == null ? void 0 : l.target;
|
|
832
|
+
!n || c.value || !$(n) || X();
|
|
833
|
+
}), $ = (o) => {
|
|
834
|
+
var t;
|
|
835
|
+
let n = o;
|
|
836
|
+
for (; n && !(n instanceof Element); ) n = n.parentNode;
|
|
837
|
+
return ((t = n == null ? void 0 : n.closest) == null ? void 0 : t.call(n, "[data-vanillanote]")) || null;
|
|
838
|
+
}, Y = (o, n) => {
|
|
839
|
+
if (!o || !n || o.html !== n.html || o.plainText !== n.plainText || JSON.stringify(o.links) !== JSON.stringify(n.links) || JSON.stringify(o.files) !== JSON.stringify(n.files) || JSON.stringify(o.images) !== JSON.stringify(n.images) || JSON.stringify(o.videos) !== JSON.stringify(n.videos)) return !1;
|
|
840
|
+
const t = Object.keys(o.fileObjects || {}), l = Object.keys(n.fileObjects || {});
|
|
841
|
+
if (t.length !== l.length || !t.every((k) => l.includes(k))) return !1;
|
|
842
|
+
const f = Object.keys(o.imageObjects || {}), i = Object.keys(n.imageObjects || {});
|
|
843
|
+
return !(f.length !== i.length || !f.every((k) => i.includes(k)));
|
|
844
|
+
}, X = () => {
|
|
845
|
+
B.value && (h.value = !0, F("update:modelValue", B.value.getNoteData()));
|
|
846
|
+
}, C = () => {
|
|
847
|
+
r.value && (R(y), z(), K(), ee(() => {
|
|
848
|
+
r.value && N();
|
|
849
|
+
}));
|
|
850
|
+
}, N = () => {
|
|
851
|
+
var l, f;
|
|
852
|
+
if (!r.value) return;
|
|
853
|
+
R(y), me(y, () => {
|
|
854
|
+
r.value && C();
|
|
855
|
+
}), L || (g.init(), L = !0);
|
|
856
|
+
const o = x.value;
|
|
857
|
+
if (!o || c.value) return;
|
|
858
|
+
g.mountNote(o);
|
|
859
|
+
const n = g.getNote(m);
|
|
860
|
+
n && (n.getId = () => m), B.value = n;
|
|
861
|
+
const t = B.value;
|
|
862
|
+
if (e.modelValue && t && t.setNoteData(e.modelValue), _.value && ((l = t == null ? void 0 : t._elements) != null && l.textarea) && t._elements.textarea.setAttribute("tabIndex", String(_.value)), t && (t.isHisonvueComponent = !0, t.getId = () => m, t.getType = () => "note", t.getRequired = () => I.value, t.setRequired = (i) => {
|
|
863
|
+
I.value = i;
|
|
864
|
+
}, t.isVisible = () => v.value, t.setVisible = (i) => {
|
|
865
|
+
v.value = i;
|
|
866
|
+
}, t.getEditMode = () => A.value, t.setEditMode = (i) => {
|
|
867
|
+
A.value = i, S();
|
|
868
|
+
}, t.isModified = () => h.value, t.initModified = () => h.value = !1, t.getTabIndex = () => _.value, t.setTabIndex = (i) => {
|
|
869
|
+
_.value = i != null ? Number(i) : null;
|
|
858
870
|
}, t.focus = () => {
|
|
859
|
-
var
|
|
860
|
-
(
|
|
871
|
+
var i, k, q;
|
|
872
|
+
(q = (k = (i = t._elements) == null ? void 0 : i.textarea) == null ? void 0 : k.focus) == null || q.call(k);
|
|
861
873
|
}, t.getDataModel = () => {
|
|
862
|
-
const
|
|
863
|
-
return new
|
|
864
|
-
}, t.setDataModel = (
|
|
865
|
-
if (!
|
|
866
|
-
const
|
|
867
|
-
html:
|
|
868
|
-
plainText:
|
|
869
|
-
links:
|
|
870
|
-
files:
|
|
871
|
-
images:
|
|
872
|
-
videos:
|
|
873
|
-
fileObjects:
|
|
874
|
-
imageObjects:
|
|
874
|
+
const i = t.getNoteData();
|
|
875
|
+
return new V.data.DataModel(i);
|
|
876
|
+
}, t.setDataModel = (i) => {
|
|
877
|
+
if (!i || i.getRowCount() == 0) return;
|
|
878
|
+
const k = {
|
|
879
|
+
html: i.hasColumn("html") ? i.getValue(0, "html") : "",
|
|
880
|
+
plainText: i.hasColumn("plainText") ? i.getValue(0, "plainText") : "",
|
|
881
|
+
links: i.hasColumn("links") ? i.getValue(0, "links") : [],
|
|
882
|
+
files: i.hasColumn("files") ? i.getValue(0, "files") : [],
|
|
883
|
+
images: i.hasColumn("images") ? i.getValue(0, "images") : [],
|
|
884
|
+
videos: i.hasColumn("videos") ? i.getValue(0, "videos") : [],
|
|
885
|
+
fileObjects: i.hasColumn("fileObjects") ? i.getValue(0, "fileObjects") : {},
|
|
886
|
+
imageObjects: i.hasColumn("imageObjects") ? i.getValue(0, "imageObjects") : {}
|
|
875
887
|
};
|
|
876
|
-
return t.setNoteData(
|
|
877
|
-
}, t.load = (
|
|
878
|
-
|
|
879
|
-
}, t.reload = () =>
|
|
880
|
-
const
|
|
881
|
-
|
|
888
|
+
return t.setNoteData(k);
|
|
889
|
+
}, t.load = (i) => {
|
|
890
|
+
i && i.getIsDataModel && i.getIsDataModel() ? t.setDataModel(i) : t.setNoteData(i);
|
|
891
|
+
}, t.reload = () => _e(y)), t) {
|
|
892
|
+
const i = (f = t._elements) == null ? void 0 : f.textarea;
|
|
893
|
+
i && T.observe(i, { characterData: !0, childList: !0, subtree: !0 });
|
|
894
|
+
}
|
|
895
|
+
t && (t._cssEvents.target_onBeforeClick = u.event.cssEvent.button_onBeforeClick, t._cssEvents.target_onAfterClick = u.event.cssEvent.button_onAfterClick, t._cssEvents.target_onBeforeMouseover = u.event.cssEvent.button_onBeforeMouseover, t._cssEvents.target_onAfterMouseover = u.event.cssEvent.button_onAfterMouseover, t._cssEvents.target_onBeforeMouseout = u.event.cssEvent.button_onBeforeMouseout, t._cssEvents.target_onAfterMouseout = u.event.cssEvent.button_onAfterMouseout, t._cssEvents.target_onBeforeTouchstart = u.event.cssEvent.button_onBeforeTouchstart, t._cssEvents.target_onAfterTouchstart = u.event.cssEvent.button_onAfterTouchstart, t._cssEvents.target_onBeforeTouchend = u.event.cssEvent.button_onBeforeTouchend, t._cssEvents.target_onAfterTouchend = u.event.cssEvent.button_onAfterTouchend, typeof e.textareaBeforeClick == "function" && (t._elementEvents.textarea_onBeforeClick = e.textareaBeforeClick), typeof e.textareaAfterClick == "function" && (t._elementEvents.textarea_onAfterClick = e.textareaAfterClick), typeof e.textareaBeforeFocus == "function" && (t._elementEvents.textarea_onBeforeFocus = e.textareaBeforeFocus), typeof e.textareaAfterFocus == "function" && (t._elementEvents.textarea_onAfterFocus = e.textareaAfterFocus), typeof e.textareaBeforeBlur == "function" && (t._elementEvents.textarea_onBeforeBlur = e.textareaBeforeBlur), typeof e.textareaAfterBlur == "function" && (t._elementEvents.textarea_onAfterBlur = e.textareaAfterBlur), typeof e.paragraphStyleSelectBeforeClick == "function" && (t._elementEvents.paragraphStyleSelect_onBeforeClick = e.paragraphStyleSelectBeforeClick), typeof e.paragraphStyleSelectAfterClick == "function" && (t._elementEvents.paragraphStyleSelect_onAfterClick = e.paragraphStyleSelectAfterClick), typeof e.toolToggleBeforeClick == "function" && (t._elementEvents.toolToggleButton_onBeforeClick = e.toolToggleBeforeClick), typeof e.toolToggleAfterClick == "function" && (t._elementEvents.toolToggleButton_onAfterClick = e.toolToggleAfterClick), typeof e.styleNomalBeforeClick == "function" && (t._elementEvents.styleNomal_onBeforeClick = e.styleNomalBeforeClick), typeof e.styleNomalAfterClick == "function" && (t._elementEvents.styleNomal_onAfterClick = e.styleNomalAfterClick), typeof e.styleHeader1BeforeClick == "function" && (t._elementEvents.styleHeader1_onBeforeClick = e.styleHeader1BeforeClick), typeof e.styleHeader1AfterClick == "function" && (t._elementEvents.styleHeader1_onAfterClick = e.styleHeader1AfterClick), typeof e.styleHeader2BeforeClick == "function" && (t._elementEvents.styleHeader2_onBeforeClick = e.styleHeader2BeforeClick), typeof e.styleHeader2AfterClick == "function" && (t._elementEvents.styleHeader2_onAfterClick = e.styleHeader2AfterClick), typeof e.styleHeader3BeforeClick == "function" && (t._elementEvents.styleHeader3_onBeforeClick = e.styleHeader3BeforeClick), typeof e.styleHeader3AfterClick == "function" && (t._elementEvents.styleHeader3_onAfterClick = e.styleHeader3AfterClick), typeof e.styleHeader4BeforeClick == "function" && (t._elementEvents.styleHeader4_onBeforeClick = e.styleHeader4BeforeClick), typeof e.styleHeader4AfterClick == "function" && (t._elementEvents.styleHeader4_onAfterClick = e.styleHeader4AfterClick), typeof e.styleHeader5BeforeClick == "function" && (t._elementEvents.styleHeader5_onBeforeClick = e.styleHeader5BeforeClick), typeof e.styleHeader5AfterClick == "function" && (t._elementEvents.styleHeader5_onAfterClick = e.styleHeader5AfterClick), typeof e.styleHeader6BeforeClick == "function" && (t._elementEvents.styleHeader6_onBeforeClick = e.styleHeader6BeforeClick), typeof e.styleHeader6AfterClick == "function" && (t._elementEvents.styleHeader6_onAfterClick = e.styleHeader6AfterClick), typeof e.boldBeforeClick == "function" && (t._elementEvents.boldButton_onBeforeClick = e.boldBeforeClick), typeof e.boldAfterClick == "function" && (t._elementEvents.boldButton_onAfterClick = e.boldAfterClick), typeof e.underlineBeforeClick == "function" && (t._elementEvents.underlineButton_onBeforeClick = e.underlineBeforeClick), typeof e.underlineAfterClick == "function" && (t._elementEvents.underlineButton_onAfterClick = e.underlineAfterClick), typeof e.italicBeforeClick == "function" && (t._elementEvents.italicButton_onBeforeClick = e.italicBeforeClick), typeof e.italicAfterClick == "function" && (t._elementEvents.italicButton_onAfterClick = e.italicAfterClick), typeof e.ulBeforeClick == "function" && (t._elementEvents.ulButton_onBeforeClick = e.ulBeforeClick), typeof e.ulAfterClick == "function" && (t._elementEvents.ulButton_onAfterClick = e.ulAfterClick), typeof e.olBeforeClick == "function" && (t._elementEvents.olButton_onBeforeClick = e.olBeforeClick), typeof e.olAfterClick == "function" && (t._elementEvents.olButton_onAfterClick = e.olAfterClick), typeof e.textAlignSelectBeforeClick == "function" && (t._elementEvents.textAlignSelect_onBeforeClick = e.textAlignSelectBeforeClick), typeof e.textAlignSelectAfterClick == "function" && (t._elementEvents.textAlignSelect_onAfterClick = e.textAlignSelectAfterClick), typeof e.textAlignLeftBeforeClick == "function" && (t._elementEvents.textAlignLeft_onBeforeClick = e.textAlignLeftBeforeClick), typeof e.textAlignLeftAfterClick == "function" && (t._elementEvents.textAlignLeft_onAfterClick = e.textAlignLeftAfterClick), typeof e.textAlignCenterBeforeClick == "function" && (t._elementEvents.textAlignCenter_onBeforeClick = e.textAlignCenterBeforeClick), typeof e.textAlignCenterAfterClick == "function" && (t._elementEvents.textAlignCenter_onAfterClick = e.textAlignCenterAfterClick), typeof e.textAlignRightBeforeClick == "function" && (t._elementEvents.textAlignRight_onBeforeClick = e.textAlignRightBeforeClick), typeof e.textAlignRightAfterClick == "function" && (t._elementEvents.textAlignRight_onAfterClick = e.textAlignRightAfterClick), typeof e.attLinkBeforeClick == "function" && (t._elementEvents.attLinkButton_onBeforeClick = e.attLinkBeforeClick), typeof e.attLinkAfterClick == "function" && (t._elementEvents.attLinkButton_onAfterClick = e.attLinkAfterClick), typeof e.attFileBeforeClick == "function" && (t._elementEvents.attFileButton_onBeforeClick = e.attFileBeforeClick), typeof e.attFileAfterClick == "function" && (t._elementEvents.attFileButton_onAfterClick = e.attFileAfterClick), typeof e.attImageBeforeClick == "function" && (t._elementEvents.attImageButton_onBeforeClick = e.attImageBeforeClick), typeof e.attImageAfterClick == "function" && (t._elementEvents.attImageButton_onAfterClick = e.attImageAfterClick), typeof e.attVideoBeforeClick == "function" && (t._elementEvents.attVideoButton_onBeforeClick = e.attVideoBeforeClick), typeof e.attVideoAfterClick == "function" && (t._elementEvents.attVideoButton_onAfterClick = e.attVideoAfterClick), typeof e.fontSizeBoxBeforeClick == "function" && (t._elementEvents.fontSizeInputBox_onBeforeClick = e.fontSizeBoxBeforeClick), typeof e.fontSizeBoxAfterClick == "function" && (t._elementEvents.fontSizeInputBox_onAfterClick = e.fontSizeBoxAfterClick), typeof e.fontSizeBeforeClick == "function" && (t._elementEvents.fontSizeInput_onBeforeClick = e.fontSizeBeforeClick), typeof e.fontSizeAfterClick == "function" && (t._elementEvents.fontSizeInput_onAfterClick = e.fontSizeAfterClick), typeof e.fontSizeBeforeInput == "function" && (t._elementEvents.fontSizeInput_onBeforeInput = e.fontSizeBeforeInput), typeof e.fontSizeAfterInput == "function" && (t._elementEvents.fontSizeInput_onAfterInput = e.fontSizeAfterInput), typeof e.fontSizeBeforeBlur == "function" && (t._elementEvents.fontSizeInput_onBeforeBlur = e.fontSizeBeforeBlur), typeof e.fontSizeAfterBlur == "function" && (t._elementEvents.fontSizeInput_onAfterBlur = e.fontSizeAfterBlur), typeof e.letterSpacingBoxBeforeClick == "function" && (t._elementEvents.letterSpacingInputBox_onBeforeClick = e.letterSpacingBoxBeforeClick), typeof e.letterSpacingBoxAfterClick == "function" && (t._elementEvents.letterSpacingInputBox_onAfterClick = e.letterSpacingBoxAfterClick), typeof e.letterSpacingBeforeClick == "function" && (t._elementEvents.letterSpacingInput_onBeforeClick = e.letterSpacingBeforeClick), typeof e.letterSpacingAfterClick == "function" && (t._elementEvents.letterSpacingInput_onAfterClick = e.letterSpacingAfterClick), typeof e.letterSpacingBeforeInput == "function" && (t._elementEvents.letterSpacingInput_onBeforeInput = e.letterSpacingBeforeInput), typeof e.letterSpacingAfterInput == "function" && (t._elementEvents.letterSpacingInput_onAfterInput = e.letterSpacingAfterInput), typeof e.letterSpacingBeforeBlur == "function" && (t._elementEvents.letterSpacingInput_onBeforeBlur = e.letterSpacingBeforeBlur), typeof e.letterSpacingAfterBlur == "function" && (t._elementEvents.letterSpacingInput_onAfterBlur = e.letterSpacingAfterBlur), typeof e.lineHeightBoxBeforeClick == "function" && (t._elementEvents.lineHeightInputBox_onBeforeClick = e.lineHeightBoxBeforeClick), typeof e.lineHeightBoxAfterClick == "function" && (t._elementEvents.lineHeightInputBox_onAfterClick = e.lineHeightBoxAfterClick), typeof e.lineHeightBeforeClick == "function" && (t._elementEvents.lineHeightInput_onBeforeClick = e.lineHeightBeforeClick), typeof e.lineHeightAfterClick == "function" && (t._elementEvents.lineHeightInput_onAfterClick = e.lineHeightAfterClick), typeof e.lineHeightBeforeInput == "function" && (t._elementEvents.lineHeightInput_onBeforeInput = e.lineHeightBeforeInput), typeof e.lineHeightAfterInput == "function" && (t._elementEvents.lineHeightInput_onAfterInput = e.lineHeightAfterInput), typeof e.lineHeightBeforeBlur == "function" && (t._elementEvents.lineHeightInput_onBeforeBlur = e.lineHeightBeforeBlur), typeof e.lineHeightAfterBlur == "function" && (t._elementEvents.lineHeightInput_onAfterBlur = e.lineHeightAfterBlur), typeof e.fontFamilySelectBeforeClick == "function" && (t._elementEvents.fontFamilySelect_onBeforeClick = e.fontFamilySelectBeforeClick), typeof e.fontFamilySelectAfterClick == "function" && (t._elementEvents.fontFamilySelect_onAfterClick = e.fontFamilySelectAfterClick), typeof e.colorTextSelectBeforeClick == "function" && (t._elementEvents.colorTextSelect_onBeforeClick = e.colorTextSelectBeforeClick), typeof e.colorTextSelectAfterClick == "function" && (t._elementEvents.colorTextSelect_onAfterClick = e.colorTextSelectAfterClick), typeof e.colorTextSelectBoxBeforeClick == "function" && (t._elementEvents.colorTextSelectBox_onBeforeClick = e.colorTextSelectBoxBeforeClick), typeof e.colorTextSelectBoxAfterClick == "function" && (t._elementEvents.colorTextSelectBox_onAfterClick = e.colorTextSelectBoxAfterClick), typeof e.colorText0BeforeClick == "function" && (t._elementEvents.colorText0_onBeforeClick = e.colorText0BeforeClick), typeof e.colorText0AfterClick == "function" && (t._elementEvents.colorText0_onAfterClick = e.colorText0AfterClick), typeof e.colorText1BeforeClick == "function" && (t._elementEvents.colorText1_onBeforeClick = e.colorText1BeforeClick), typeof e.colorText1AfterClick == "function" && (t._elementEvents.colorText1_onAfterClick = e.colorText1AfterClick), typeof e.colorText2BeforeClick == "function" && (t._elementEvents.colorText2_onBeforeClick = e.colorText2BeforeClick), typeof e.colorText2AfterClick == "function" && (t._elementEvents.colorText2_onAfterClick = e.colorText2AfterClick), typeof e.colorText3BeforeClick == "function" && (t._elementEvents.colorText3_onBeforeClick = e.colorText3BeforeClick), typeof e.colorText3AfterClick == "function" && (t._elementEvents.colorText3_onAfterClick = e.colorText3AfterClick), typeof e.colorText4BeforeClick == "function" && (t._elementEvents.colorText4_onBeforeClick = e.colorText4BeforeClick), typeof e.colorText4AfterClick == "function" && (t._elementEvents.colorText4_onAfterClick = e.colorText4AfterClick), typeof e.colorText5BeforeClick == "function" && (t._elementEvents.colorText5_onBeforeClick = e.colorText5BeforeClick), typeof e.colorText5AfterClick == "function" && (t._elementEvents.colorText5_onAfterClick = e.colorText5AfterClick), typeof e.colorText6BeforeClick == "function" && (t._elementEvents.colorText6_onBeforeClick = e.colorText6BeforeClick), typeof e.colorText6AfterClick == "function" && (t._elementEvents.colorText6_onAfterClick = e.colorText6AfterClick), typeof e.colorText7BeforeClick == "function" && (t._elementEvents.colorText7_onBeforeClick = e.colorText7BeforeClick), typeof e.colorText7AfterClick == "function" && (t._elementEvents.colorText7_onAfterClick = e.colorText7AfterClick), typeof e.colorTextRBeforeClick == "function" && (t._elementEvents.colorTextRInput_onBeforeClick = e.colorTextRBeforeClick), typeof e.colorTextRAfterClick == "function" && (t._elementEvents.colorTextRInput_onAfterClick = e.colorTextRAfterClick), typeof e.colorTextRBeforeInput == "function" && (t._elementEvents.colorTextRInput_onBeforeInput = e.colorTextRBeforeInput), typeof e.colorTextRAfterInput == "function" && (t._elementEvents.colorTextRInput_onAfterInput = e.colorTextRAfterInput), typeof e.colorTextRBeforeBlur == "function" && (t._elementEvents.colorTextRInput_onBeforeBlur = e.colorTextRBeforeBlur), typeof e.colorTextRAfterBlur == "function" && (t._elementEvents.colorTextRInput_onAfterBlur = e.colorTextRAfterBlur), typeof e.colorTextGBeforeClick == "function" && (t._elementEvents.colorTextGInput_onBeforeClick = e.colorTextGBeforeClick), typeof e.colorTextGAfterClick == "function" && (t._elementEvents.colorTextGInput_onAfterClick = e.colorTextGAfterClick), typeof e.colorTextGBeforeInput == "function" && (t._elementEvents.colorTextGInput_onBeforeInput = e.colorTextGBeforeInput), typeof e.colorTextGAfterInput == "function" && (t._elementEvents.colorTextGInput_onAfterInput = e.colorTextGAfterInput), typeof e.colorTextGBeforeBlur == "function" && (t._elementEvents.colorTextGInput_onBeforeBlur = e.colorTextGBeforeBlur), typeof e.colorTextGAfterBlur == "function" && (t._elementEvents.colorTextGInput_onAfterBlur = e.colorTextGAfterBlur), typeof e.colorTextBBeforeClick == "function" && (t._elementEvents.colorTextBInput_onBeforeClick = e.colorTextBBeforeClick), typeof e.colorTextBAfterClick == "function" && (t._elementEvents.colorTextBInput_onAfterClick = e.colorTextBAfterClick), typeof e.colorTextBBeforeInput == "function" && (t._elementEvents.colorTextBInput_onBeforeInput = e.colorTextBBeforeInput), typeof e.colorTextBAfterInput == "function" && (t._elementEvents.colorTextBInput_onAfterInput = e.colorTextBAfterInput), typeof e.colorTextBBeforeBlur == "function" && (t._elementEvents.colorTextBInput_onBeforeBlur = e.colorTextBBeforeBlur), typeof e.colorTextBAfterBlur == "function" && (t._elementEvents.colorTextBInput_onAfterBlur = e.colorTextBAfterBlur), typeof e.colorTextOpacityBeforeClick == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeClick = e.colorTextOpacityBeforeClick), typeof e.colorTextOpacityAfterClick == "function" && (t._elementEvents.colorTextOpacityInput_onAfterClick = e.colorTextOpacityAfterClick), typeof e.colorTextOpacityBeforeInput == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeInput = e.colorTextOpacityBeforeInput), typeof e.colorTextOpacityAfterInput == "function" && (t._elementEvents.colorTextOpacityInput_onAfterInput = e.colorTextOpacityAfterInput), typeof e.colorTextOpacityBeforeBlur == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeBlur = e.colorTextOpacityBeforeBlur), typeof e.colorTextOpacityAfterBlur == "function" && (t._elementEvents.colorTextOpacityInput_onAfterBlur = e.colorTextOpacityAfterBlur), typeof e.colorBackSelectBeforeClick == "function" && (t._elementEvents.colorBackSelect_onBeforeClick = e.colorBackSelectBeforeClick), typeof e.colorBackSelectAfterClick == "function" && (t._elementEvents.colorBackSelect_onAfterClick = e.colorBackSelectAfterClick), typeof e.colorBackSelectBoxBeforeClick == "function" && (t._elementEvents.colorBackSelectBox_onBeforeClick = e.colorBackSelectBoxBeforeClick), typeof e.colorBackSelectBoxAfterClick == "function" && (t._elementEvents.colorBackSelectBox_onAfterClick = e.colorBackSelectBoxAfterClick), typeof e.colorBack0BeforeClick == "function" && (t._elementEvents.colorBack0_onBeforeClick = e.colorBack0BeforeClick), typeof e.colorBack0AfterClick == "function" && (t._elementEvents.colorBack0_onAfterClick = e.colorBack0AfterClick), typeof e.colorBack1BeforeClick == "function" && (t._elementEvents.colorBack1_onBeforeClick = e.colorBack1BeforeClick), typeof e.colorBack1AfterClick == "function" && (t._elementEvents.colorBack1_onAfterClick = e.colorBack1AfterClick), typeof e.colorBack2BeforeClick == "function" && (t._elementEvents.colorBack2_onBeforeClick = e.colorBack2BeforeClick), typeof e.colorBack2AfterClick == "function" && (t._elementEvents.colorBack2_onAfterClick = e.colorBack2AfterClick), typeof e.colorBack3BeforeClick == "function" && (t._elementEvents.colorBack3_onBeforeClick = e.colorBack3BeforeClick), typeof e.colorBack3AfterClick == "function" && (t._elementEvents.colorBack3_onAfterClick = e.colorBack3AfterClick), typeof e.colorBack4BeforeClick == "function" && (t._elementEvents.colorBack4_onBeforeClick = e.colorBack4BeforeClick), typeof e.colorBack4AfterClick == "function" && (t._elementEvents.colorBack4_onAfterClick = e.colorBack4AfterClick), typeof e.colorBack5BeforeClick == "function" && (t._elementEvents.colorBack5_onBeforeClick = e.colorBack5BeforeClick), typeof e.colorBack5AfterClick == "function" && (t._elementEvents.colorBack5_onAfterClick = e.colorBack5AfterClick), typeof e.colorBack6BeforeClick == "function" && (t._elementEvents.colorBack6_onBeforeClick = e.colorBack6BeforeClick), typeof e.colorBack6AfterClick == "function" && (t._elementEvents.colorBack6_onAfterClick = e.colorBack6AfterClick), typeof e.colorBack7BeforeClick == "function" && (t._elementEvents.colorBack7_onBeforeClick = e.colorBack7BeforeClick), typeof e.colorBack7AfterClick == "function" && (t._elementEvents.colorBack7_onAfterClick = e.colorBack7AfterClick), typeof e.colorBackRBeforeClick == "function" && (t._elementEvents.colorBackRInput_onBeforeClick = e.colorBackRBeforeClick), typeof e.colorBackRAfterClick == "function" && (t._elementEvents.colorBackRInput_onAfterClick = e.colorBackRAfterClick), typeof e.colorBackRBeforeInput == "function" && (t._elementEvents.colorBackRInput_onBeforeInput = e.colorBackRBeforeInput), typeof e.colorBackRAfterInput == "function" && (t._elementEvents.colorBackRInput_onAfterInput = e.colorBackRAfterInput), typeof e.colorBackRBeforeBlur == "function" && (t._elementEvents.colorBackRInput_onBeforeBlur = e.colorBackRBeforeBlur), typeof e.colorBackRAfterBlur == "function" && (t._elementEvents.colorBackRInput_onAfterBlur = e.colorBackRAfterBlur), typeof e.colorBackGBeforeClick == "function" && (t._elementEvents.colorBackGInput_onBeforeClick = e.colorBackGBeforeClick), typeof e.colorBackGAfterClick == "function" && (t._elementEvents.colorBackGInput_onAfterClick = e.colorBackGAfterClick), typeof e.colorBackGBeforeInput == "function" && (t._elementEvents.colorBackGInput_onBeforeInput = e.colorBackGBeforeInput), typeof e.colorBackGAfterInput == "function" && (t._elementEvents.colorBackGInput_onAfterInput = e.colorBackGAfterInput), typeof e.colorBackGBeforeBlur == "function" && (t._elementEvents.colorBackGInput_onBeforeBlur = e.colorBackGBeforeBlur), typeof e.colorBackGAfterBlur == "function" && (t._elementEvents.colorBackGInput_onAfterBlur = e.colorBackGAfterBlur), typeof e.colorBackBBeforeClick == "function" && (t._elementEvents.colorBackBInput_onBeforeClick = e.colorBackBBeforeClick), typeof e.colorBackBAfterClick == "function" && (t._elementEvents.colorBackBInput_onAfterClick = e.colorBackBAfterClick), typeof e.colorBackBBeforeInput == "function" && (t._elementEvents.colorBackBInput_onBeforeInput = e.colorBackBBeforeInput), typeof e.colorBackBAfterInput == "function" && (t._elementEvents.colorBackBInput_onAfterInput = e.colorBackBAfterInput), typeof e.colorBackBBeforeBlur == "function" && (t._elementEvents.colorBackBInput_onBeforeBlur = e.colorBackBBeforeBlur), typeof e.colorBackBAfterBlur == "function" && (t._elementEvents.colorBackBInput_onAfterBlur = e.colorBackBAfterBlur), typeof e.colorBackOpacityBeforeClick == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeClick = e.colorBackOpacityBeforeClick), typeof e.colorBackOpacityAfterClick == "function" && (t._elementEvents.colorBackOpacityInput_onAfterClick = e.colorBackOpacityAfterClick), typeof e.colorBackOpacityBeforeInput == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeInput = e.colorBackOpacityBeforeInput), typeof e.colorBackOpacityAfterInput == "function" && (t._elementEvents.colorBackOpacityInput_onAfterInput = e.colorBackOpacityAfterInput), typeof e.colorBackOpacityBeforeBlur == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeBlur = e.colorBackOpacityBeforeBlur), typeof e.colorBackOpacityAfterBlur == "function" && (t._elementEvents.colorBackOpacityInput_onAfterBlur = e.colorBackOpacityAfterBlur), typeof e.formatClearBeforeClick == "function" && (t._elementEvents.formatClearButton_onBeforeClick = e.formatClearBeforeClick), typeof e.formatClearAfterClick == "function" && (t._elementEvents.formatClearButton_onAfterClick = e.formatClearAfterClick), typeof e.undoBeforeClick == "function" && (t._elementEvents.undoButton_onBeforeClick = e.undoBeforeClick), typeof e.undoAfterClick == "function" && (t._elementEvents.undoButton_onAfterClick = e.undoAfterClick), typeof e.redoBeforeClick == "function" && (t._elementEvents.redoButton_onBeforeClick = e.redoBeforeClick), typeof e.redoAfterClick == "function" && (t._elementEvents.redoButton_onAfterClick = e.redoAfterClick), typeof e.helpBeforeClick == "function" && (t._elementEvents.helpButton_onBeforeClick = e.helpBeforeClick), typeof e.helpAfterClick == "function" && (t._elementEvents.helpButton_onAfterClick = e.helpAfterClick), typeof e.modalBackBeforeClick == "function" && (t._elementEvents.modalBack_onBeforeClick = e.modalBackBeforeClick), typeof e.modalBackAfterClick == "function" && (t._elementEvents.modalBack_onAfterClick = e.modalBackAfterClick), typeof e.attLinkModalBeforeClick == "function" && (t._elementEvents.attLinkModal_onBeforeClick = e.attLinkModalBeforeClick), typeof e.attLinkModalAfterClick == "function" && (t._elementEvents.attLinkModal_onAfterClick = e.attLinkModalAfterClick), typeof e.attLinkTextBeforeInput == "function" && (t._elementEvents.attLinkText_onBeforeInput = e.attLinkTextBeforeInput), typeof e.attLinkTextAfterInput == "function" && (t._elementEvents.attLinkText_onAfterInput = e.attLinkTextAfterInput), typeof e.attLinkTextBeforeBlur == "function" && (t._elementEvents.attLinkText_onBeforeBlur = e.attLinkTextBeforeBlur), typeof e.attLinkTextAfterBlur == "function" && (t._elementEvents.attLinkText_onAfterBlur = e.attLinkTextAfterBlur), typeof e.attLinkHrefBeforeInput == "function" && (t._elementEvents.attLinkHref_onBeforeInput = e.attLinkHrefBeforeInput), typeof e.attLinkHrefAfterInput == "function" && (t._elementEvents.attLinkHref_onAfterInput = e.attLinkHrefAfterInput), typeof e.attLinkHrefBeforeBlur == "function" && (t._elementEvents.attLinkHref_onBeforeBlur = e.attLinkHrefBeforeBlur), typeof e.attLinkHrefAfterBlur == "function" && (t._elementEvents.attLinkHref_onAfterBlur = e.attLinkHrefAfterBlur), typeof e.attLinkInsertBeforeClick == "function" && (t._elementEvents.attLinkInsertButton_onBeforeClick = e.attLinkInsertBeforeClick), typeof e.attLinkInsertAfterClick == "function" && (t._elementEvents.attLinkInsertButton_onAfterClick = e.attLinkInsertAfterClick), typeof e.attFileModalBeforeClick == "function" && (t._elementEvents.attFileModal_onBeforeClick = e.attFileModalBeforeClick), typeof e.attFileModalAfterClick == "function" && (t._elementEvents.attFileModal_onAfterClick = e.attFileModalAfterClick), typeof e.attFileUploadBeforeClick == "function" && (t._elementEvents.attFileUploadButton_onBeforeClick = e.attFileUploadBeforeClick), typeof e.attFileUploadAfterClick == "function" && (t._elementEvents.attFileUploadButton_onAfterClick = e.attFileUploadAfterClick), typeof e.attFileUploadDivBeforeDragover == "function" && (t._elementEvents.attFileUploadDiv_onBeforeDragover = e.attFileUploadDivBeforeDragover), typeof e.attFileUploadDivAfterDragover == "function" && (t._elementEvents.attFileUploadDiv_onAfterDragover = e.attFileUploadDivAfterDragover), typeof e.attFileUploadDivBeforeDrop == "function" && (t._elementEvents.attFileUploadDiv_onBeforeDrop = e.attFileUploadDivBeforeDrop), typeof e.attFileUploadDivAfterDrop == "function" && (t._elementEvents.attFileUploadDiv_onAfterDrop = e.attFileUploadDivAfterDrop), typeof e.attFileUploadDivBeforeClick == "function" && (t._elementEvents.attFileUploadDiv_onBeforeClick = e.attFileUploadDivBeforeClick), typeof e.attFileUploadDivAfterClick == "function" && (t._elementEvents.attFileUploadDiv_onAfterClick = e.attFileUploadDivAfterClick), typeof e.attFileUploadBeforeInput == "function" && (t._elementEvents.attFileUpload_onBeforeInput = e.attFileUploadBeforeInput), typeof e.attFileUploadAfterInput == "function" && (t._elementEvents.attFileUpload_onAfterInput = e.attFileUploadAfterInput), typeof e.attFileUploadBeforeBlur == "function" && (t._elementEvents.attFileUpload_onBeforeBlur = e.attFileUploadBeforeBlur), typeof e.attFileUploadAfterBlur == "function" && (t._elementEvents.attFileUpload_onAfterBlur = e.attFileUploadAfterBlur), typeof e.attFileInsertBeforeClick == "function" && (t._elementEvents.attFileInsertButton_onBeforeClick = e.attFileInsertBeforeClick), typeof e.attFileInsertAfterClick == "function" && (t._elementEvents.attFileInsertButton_onAfterClick = e.attFileInsertAfterClick), typeof e.attLinkTooltipEditBeforeClick == "function" && (t._elementEvents.attLinkTooltipEditButton_onBeforeClick = e.attLinkTooltipEditBeforeClick), typeof e.attLinkTooltipEditAfterClick == "function" && (t._elementEvents.attLinkTooltipEditButton_onAfterClick = e.attLinkTooltipEditAfterClick), typeof e.attLinkTooltipUnlinkBeforeClick == "function" && (t._elementEvents.attLinkTooltipUnlinkButton_onBeforeClick = e.attLinkTooltipUnlinkBeforeClick), typeof e.attLinkTooltipUnlinkAfterClick == "function" && (t._elementEvents.attLinkTooltipUnlinkButton_onAfterClick = e.attLinkTooltipUnlinkAfterClick), typeof e.attImageModalBeforeClick == "function" && (t._elementEvents.attImageModal_onBeforeClick = e.attImageModalBeforeClick), typeof e.attImageModalAfterClick == "function" && (t._elementEvents.attImageModal_onAfterClick = e.attImageModalAfterClick), typeof e.attImageUploadViewBeforeDragover == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeDragover = e.attImageUploadViewBeforeDragover), typeof e.attImageUploadViewAfterDragover == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterDragover = e.attImageUploadViewAfterDragover), typeof e.attImageUploadViewBeforeDrop == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeDrop = e.attImageUploadViewBeforeDrop), typeof e.attImageUploadViewAfterDrop == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterDrop = e.attImageUploadViewAfterDrop), typeof e.attImageUploadViewBeforeClick == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeClick = e.attImageUploadViewBeforeClick), typeof e.attImageUploadViewAfterClick == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterClick = e.attImageUploadViewAfterClick), typeof e.attImageViewPreBeforeClick == "function" && (t._elementEvents.attImageViewPreButton_onBeforeClick = e.attImageViewPreBeforeClick), typeof e.attImageViewPreAfterClick == "function" && (t._elementEvents.attImageViewPreButton_onAfterClick = e.attImageViewPreAfterClick), typeof e.attImageViewNextBeforeClick == "function" && (t._elementEvents.attImageViewNextButton_onBeforeClick = e.attImageViewNextBeforeClick), typeof e.attImageViewNextAfterClick == "function" && (t._elementEvents.attImageViewNextButton_onAfterClick = e.attImageViewNextAfterClick), typeof e.attImageUploadBeforeInput == "function" && (t._elementEvents.attImageUpload_onBeforeInput = e.attImageUploadBeforeInput), typeof e.attImageUploadAfterInput == "function" && (t._elementEvents.attImageUpload_onAfterInput = e.attImageUploadAfterInput), typeof e.attImageUploadBeforeBlur == "function" && (t._elementEvents.attImageUpload_onBeforeBlur = e.attImageUploadBeforeBlur), typeof e.attImageUploadAfterBlur == "function" && (t._elementEvents.attImageUpload_onAfterBlur = e.attImageUploadAfterBlur), typeof e.attImageURLBeforeInput == "function" && (t._elementEvents.attImageURL_onBeforeInput = e.attImageURLBeforeInput), typeof e.attImageURLAfterInput == "function" && (t._elementEvents.attImageURL_onAfterInput = e.attImageURLAfterInput), typeof e.attImageURLBeforeBlur == "function" && (t._elementEvents.attImageURL_onBeforeBlur = e.attImageURLBeforeBlur), typeof e.attImageURLAfterBlur == "function" && (t._elementEvents.attImageURL_onAfterBlur = e.attImageURLAfterBlur), typeof e.attImageInsertBeforeClick == "function" && (t._elementEvents.attImageInsertButton_onBeforeClick = e.attImageInsertBeforeClick), typeof e.attImageInsertAfterClick == "function" && (t._elementEvents.attImageInsertButton_onAfterClick = e.attImageInsertAfterClick), typeof e.attVideoModalBeforeClick == "function" && (t._elementEvents.attVideoModal_onBeforeClick = e.attVideoModalBeforeClick), typeof e.attVideoModalAfterClick == "function" && (t._elementEvents.attVideoModal_onAfterClick = e.attVideoModalAfterClick), typeof e.attVideoEmbedIdBeforeInput == "function" && (t._elementEvents.attVideoEmbedId_onBeforeInput = e.attVideoEmbedIdBeforeInput), typeof e.attVideoEmbedIdAfterInput == "function" && (t._elementEvents.attVideoEmbedId_onAfterInput = e.attVideoEmbedIdAfterInput), typeof e.attVideoEmbedIdBeforeBlur == "function" && (t._elementEvents.attVideoEmbedId_onBeforeBlur = e.attVideoEmbedIdBeforeBlur), typeof e.attVideoEmbedIdAfterBlur == "function" && (t._elementEvents.attVideoEmbedId_onAfterBlur = e.attVideoEmbedIdAfterBlur), typeof e.attVideoWidthBeforeInput == "function" && (t._elementEvents.attVideoWidth_onBeforeInput = e.attVideoWidthBeforeInput), typeof e.attVideoWidthAfterInput == "function" && (t._elementEvents.attVideoWidth_onAfterInput = e.attVideoWidthAfterInput), typeof e.attVideoWidthBeforeBlur == "function" && (t._elementEvents.attVideoWidth_onBeforeBlur = e.attVideoWidthBeforeBlur), typeof e.attVideoWidthAfterBlur == "function" && (t._elementEvents.attVideoWidth_onAfterBlur = e.attVideoWidthAfterBlur), typeof e.attVideoHeightBeforeInput == "function" && (t._elementEvents.attVideoHeight_onBeforeInput = e.attVideoHeightBeforeInput), typeof e.attVideoHeightAfterInput == "function" && (t._elementEvents.attVideoHeight_onAfterInput = e.attVideoHeightAfterInput), typeof e.attVideoHeightBeforeBlur == "function" && (t._elementEvents.attVideoHeight_onBeforeBlur = e.attVideoHeightBeforeBlur), typeof e.attVideoHeightAfterBlur == "function" && (t._elementEvents.attVideoHeight_onAfterBlur = e.attVideoHeightAfterBlur), typeof e.attVideoInsertBeforeClick == "function" && (t._elementEvents.attVideoInsertButton_onBeforeClick = e.attVideoInsertBeforeClick), typeof e.attVideoInsertAfterClick == "function" && (t._elementEvents.attVideoInsertButton_onAfterClick = e.attVideoInsertAfterClick), typeof e.attImageAndVideoTooltipWidthBeforeInput == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeInput = e.attImageAndVideoTooltipWidthBeforeInput), typeof e.attImageAndVideoTooltipWidthAfterInput == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterInput = e.attImageAndVideoTooltipWidthAfterInput), typeof e.attImageAndVideoTooltipWidthBeforeBlur == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeBlur = e.attImageAndVideoTooltipWidthBeforeBlur), typeof e.attImageAndVideoTooltipWidthAfterBlur == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterBlur = e.attImageAndVideoTooltipWidthAfterBlur), typeof e.attImageAndVideoTooltipWidthBeforeKeyup == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup = e.attImageAndVideoTooltipWidthBeforeKeyup), typeof e.attImageAndVideoTooltipWidthAfterKeyup == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup = e.attImageAndVideoTooltipWidthAfterKeyup), typeof e.attImageAndVideoTooltipFloatRadioNoneBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onBeforeClick = e.attImageAndVideoTooltipFloatRadioNoneBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioNoneAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onAfterClick = e.attImageAndVideoTooltipFloatRadioNoneAfterClick), typeof e.attImageAndVideoTooltipFloatRadioLeftBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onBeforeClick = e.attImageAndVideoTooltipFloatRadioLeftBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioLeftAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onAfterClick = e.attImageAndVideoTooltipFloatRadioLeftAfterClick), typeof e.attImageAndVideoTooltipFloatRadioRightBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onBeforeClick = e.attImageAndVideoTooltipFloatRadioRightBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioRightAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onAfterClick = e.attImageAndVideoTooltipFloatRadioRightAfterClick), typeof e.attImageAndVideoTooltipShapeRadioSquareBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onBeforeClick = e.attImageAndVideoTooltipShapeRadioSquareBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioSquareAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onAfterClick = e.attImageAndVideoTooltipShapeRadioSquareAfterClick), typeof e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onBeforeClick = e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioRadiusAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onAfterClick = e.attImageAndVideoTooltipShapeRadioRadiusAfterClick), typeof e.attImageAndVideoTooltipShapeRadioCircleBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onBeforeClick = e.attImageAndVideoTooltipShapeRadioCircleBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioCircleAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onAfterClick = e.attImageAndVideoTooltipShapeRadioCircleAfterClick), typeof e.helpModalBeforeClick == "function" && (t._elementEvents.helpModal_onBeforeClick = e.helpModalBeforeClick), typeof e.helpModalAfterClick == "function" && (t._elementEvents.helpModal_onAfterClick = e.helpModalAfterClick), typeof e.placeholderBeforeClick == "function" && (t._elementEvents.placeholder_onBeforeClick = e.placeholderBeforeClick), typeof e.placeholderAfterClick == "function" && (t._elementEvents.placeholder_onAfterClick = e.placeholderAfterClick)), S(), c.value = !1, o.__hnoteDestroyed = !1, F("mounted", t);
|
|
896
|
+
}, z = () => {
|
|
897
|
+
R(y);
|
|
898
|
+
const o = x.value;
|
|
899
|
+
if (!o || c.value) {
|
|
900
|
+
T.disconnect();
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
if (!o.isConnected) {
|
|
904
|
+
c.value = !0, T.disconnect(), B.value = null;
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
try {
|
|
908
|
+
g.unmountNote(o);
|
|
909
|
+
} catch (n) {
|
|
910
|
+
console.warn("[HNote] unmountNote skipped:", n);
|
|
882
911
|
}
|
|
883
|
-
t && (t._cssEvents.target_onBeforeClick = f.event.cssEvent.button_onBeforeClick, t._cssEvents.target_onAfterClick = f.event.cssEvent.button_onAfterClick, t._cssEvents.target_onBeforeMouseover = f.event.cssEvent.button_onBeforeMouseover, t._cssEvents.target_onAfterMouseover = f.event.cssEvent.button_onAfterMouseover, t._cssEvents.target_onBeforeMouseout = f.event.cssEvent.button_onBeforeMouseout, t._cssEvents.target_onAfterMouseout = f.event.cssEvent.button_onAfterMouseout, t._cssEvents.target_onBeforeTouchstart = f.event.cssEvent.button_onBeforeTouchstart, t._cssEvents.target_onAfterTouchstart = f.event.cssEvent.button_onAfterTouchstart, t._cssEvents.target_onBeforeTouchend = f.event.cssEvent.button_onBeforeTouchend, t._cssEvents.target_onAfterTouchend = f.event.cssEvent.button_onAfterTouchend, typeof e.textareaBeforeClick == "function" && (t._elementEvents.textarea_onBeforeClick = e.textareaBeforeClick), typeof e.textareaAfterClick == "function" && (t._elementEvents.textarea_onAfterClick = e.textareaAfterClick), typeof e.textareaBeforeFocus == "function" && (t._elementEvents.textarea_onBeforeFocus = e.textareaBeforeFocus), typeof e.textareaAfterFocus == "function" && (t._elementEvents.textarea_onAfterFocus = e.textareaAfterFocus), typeof e.textareaBeforeBlur == "function" && (t._elementEvents.textarea_onBeforeBlur = e.textareaBeforeBlur), typeof e.textareaAfterBlur == "function" && (t._elementEvents.textarea_onAfterBlur = e.textareaAfterBlur), typeof e.paragraphStyleSelectBeforeClick == "function" && (t._elementEvents.paragraphStyleSelect_onBeforeClick = e.paragraphStyleSelectBeforeClick), typeof e.paragraphStyleSelectAfterClick == "function" && (t._elementEvents.paragraphStyleSelect_onAfterClick = e.paragraphStyleSelectAfterClick), typeof e.toolToggleBeforeClick == "function" && (t._elementEvents.toolToggleButton_onBeforeClick = e.toolToggleBeforeClick), typeof e.toolToggleAfterClick == "function" && (t._elementEvents.toolToggleButton_onAfterClick = e.toolToggleAfterClick), typeof e.styleNomalBeforeClick == "function" && (t._elementEvents.styleNomal_onBeforeClick = e.styleNomalBeforeClick), typeof e.styleNomalAfterClick == "function" && (t._elementEvents.styleNomal_onAfterClick = e.styleNomalAfterClick), typeof e.styleHeader1BeforeClick == "function" && (t._elementEvents.styleHeader1_onBeforeClick = e.styleHeader1BeforeClick), typeof e.styleHeader1AfterClick == "function" && (t._elementEvents.styleHeader1_onAfterClick = e.styleHeader1AfterClick), typeof e.styleHeader2BeforeClick == "function" && (t._elementEvents.styleHeader2_onBeforeClick = e.styleHeader2BeforeClick), typeof e.styleHeader2AfterClick == "function" && (t._elementEvents.styleHeader2_onAfterClick = e.styleHeader2AfterClick), typeof e.styleHeader3BeforeClick == "function" && (t._elementEvents.styleHeader3_onBeforeClick = e.styleHeader3BeforeClick), typeof e.styleHeader3AfterClick == "function" && (t._elementEvents.styleHeader3_onAfterClick = e.styleHeader3AfterClick), typeof e.styleHeader4BeforeClick == "function" && (t._elementEvents.styleHeader4_onBeforeClick = e.styleHeader4BeforeClick), typeof e.styleHeader4AfterClick == "function" && (t._elementEvents.styleHeader4_onAfterClick = e.styleHeader4AfterClick), typeof e.styleHeader5BeforeClick == "function" && (t._elementEvents.styleHeader5_onBeforeClick = e.styleHeader5BeforeClick), typeof e.styleHeader5AfterClick == "function" && (t._elementEvents.styleHeader5_onAfterClick = e.styleHeader5AfterClick), typeof e.styleHeader6BeforeClick == "function" && (t._elementEvents.styleHeader6_onBeforeClick = e.styleHeader6BeforeClick), typeof e.styleHeader6AfterClick == "function" && (t._elementEvents.styleHeader6_onAfterClick = e.styleHeader6AfterClick), typeof e.boldBeforeClick == "function" && (t._elementEvents.boldButton_onBeforeClick = e.boldBeforeClick), typeof e.boldAfterClick == "function" && (t._elementEvents.boldButton_onAfterClick = e.boldAfterClick), typeof e.underlineBeforeClick == "function" && (t._elementEvents.underlineButton_onBeforeClick = e.underlineBeforeClick), typeof e.underlineAfterClick == "function" && (t._elementEvents.underlineButton_onAfterClick = e.underlineAfterClick), typeof e.italicBeforeClick == "function" && (t._elementEvents.italicButton_onBeforeClick = e.italicBeforeClick), typeof e.italicAfterClick == "function" && (t._elementEvents.italicButton_onAfterClick = e.italicAfterClick), typeof e.ulBeforeClick == "function" && (t._elementEvents.ulButton_onBeforeClick = e.ulBeforeClick), typeof e.ulAfterClick == "function" && (t._elementEvents.ulButton_onAfterClick = e.ulAfterClick), typeof e.olBeforeClick == "function" && (t._elementEvents.olButton_onBeforeClick = e.olBeforeClick), typeof e.olAfterClick == "function" && (t._elementEvents.olButton_onAfterClick = e.olAfterClick), typeof e.textAlignSelectBeforeClick == "function" && (t._elementEvents.textAlignSelect_onBeforeClick = e.textAlignSelectBeforeClick), typeof e.textAlignSelectAfterClick == "function" && (t._elementEvents.textAlignSelect_onAfterClick = e.textAlignSelectAfterClick), typeof e.textAlignLeftBeforeClick == "function" && (t._elementEvents.textAlignLeft_onBeforeClick = e.textAlignLeftBeforeClick), typeof e.textAlignLeftAfterClick == "function" && (t._elementEvents.textAlignLeft_onAfterClick = e.textAlignLeftAfterClick), typeof e.textAlignCenterBeforeClick == "function" && (t._elementEvents.textAlignCenter_onBeforeClick = e.textAlignCenterBeforeClick), typeof e.textAlignCenterAfterClick == "function" && (t._elementEvents.textAlignCenter_onAfterClick = e.textAlignCenterAfterClick), typeof e.textAlignRightBeforeClick == "function" && (t._elementEvents.textAlignRight_onBeforeClick = e.textAlignRightBeforeClick), typeof e.textAlignRightAfterClick == "function" && (t._elementEvents.textAlignRight_onAfterClick = e.textAlignRightAfterClick), typeof e.attLinkBeforeClick == "function" && (t._elementEvents.attLinkButton_onBeforeClick = e.attLinkBeforeClick), typeof e.attLinkAfterClick == "function" && (t._elementEvents.attLinkButton_onAfterClick = e.attLinkAfterClick), typeof e.attFileBeforeClick == "function" && (t._elementEvents.attFileButton_onBeforeClick = e.attFileBeforeClick), typeof e.attFileAfterClick == "function" && (t._elementEvents.attFileButton_onAfterClick = e.attFileAfterClick), typeof e.attImageBeforeClick == "function" && (t._elementEvents.attImageButton_onBeforeClick = e.attImageBeforeClick), typeof e.attImageAfterClick == "function" && (t._elementEvents.attImageButton_onAfterClick = e.attImageAfterClick), typeof e.attVideoBeforeClick == "function" && (t._elementEvents.attVideoButton_onBeforeClick = e.attVideoBeforeClick), typeof e.attVideoAfterClick == "function" && (t._elementEvents.attVideoButton_onAfterClick = e.attVideoAfterClick), typeof e.fontSizeBoxBeforeClick == "function" && (t._elementEvents.fontSizeInputBox_onBeforeClick = e.fontSizeBoxBeforeClick), typeof e.fontSizeBoxAfterClick == "function" && (t._elementEvents.fontSizeInputBox_onAfterClick = e.fontSizeBoxAfterClick), typeof e.fontSizeBeforeClick == "function" && (t._elementEvents.fontSizeInput_onBeforeClick = e.fontSizeBeforeClick), typeof e.fontSizeAfterClick == "function" && (t._elementEvents.fontSizeInput_onAfterClick = e.fontSizeAfterClick), typeof e.fontSizeBeforeInput == "function" && (t._elementEvents.fontSizeInput_onBeforeInput = e.fontSizeBeforeInput), typeof e.fontSizeAfterInput == "function" && (t._elementEvents.fontSizeInput_onAfterInput = e.fontSizeAfterInput), typeof e.fontSizeBeforeBlur == "function" && (t._elementEvents.fontSizeInput_onBeforeBlur = e.fontSizeBeforeBlur), typeof e.fontSizeAfterBlur == "function" && (t._elementEvents.fontSizeInput_onAfterBlur = e.fontSizeAfterBlur), typeof e.letterSpacingBoxBeforeClick == "function" && (t._elementEvents.letterSpacingInputBox_onBeforeClick = e.letterSpacingBoxBeforeClick), typeof e.letterSpacingBoxAfterClick == "function" && (t._elementEvents.letterSpacingInputBox_onAfterClick = e.letterSpacingBoxAfterClick), typeof e.letterSpacingBeforeClick == "function" && (t._elementEvents.letterSpacingInput_onBeforeClick = e.letterSpacingBeforeClick), typeof e.letterSpacingAfterClick == "function" && (t._elementEvents.letterSpacingInput_onAfterClick = e.letterSpacingAfterClick), typeof e.letterSpacingBeforeInput == "function" && (t._elementEvents.letterSpacingInput_onBeforeInput = e.letterSpacingBeforeInput), typeof e.letterSpacingAfterInput == "function" && (t._elementEvents.letterSpacingInput_onAfterInput = e.letterSpacingAfterInput), typeof e.letterSpacingBeforeBlur == "function" && (t._elementEvents.letterSpacingInput_onBeforeBlur = e.letterSpacingBeforeBlur), typeof e.letterSpacingAfterBlur == "function" && (t._elementEvents.letterSpacingInput_onAfterBlur = e.letterSpacingAfterBlur), typeof e.lineHeightBoxBeforeClick == "function" && (t._elementEvents.lineHeightInputBox_onBeforeClick = e.lineHeightBoxBeforeClick), typeof e.lineHeightBoxAfterClick == "function" && (t._elementEvents.lineHeightInputBox_onAfterClick = e.lineHeightBoxAfterClick), typeof e.lineHeightBeforeClick == "function" && (t._elementEvents.lineHeightInput_onBeforeClick = e.lineHeightBeforeClick), typeof e.lineHeightAfterClick == "function" && (t._elementEvents.lineHeightInput_onAfterClick = e.lineHeightAfterClick), typeof e.lineHeightBeforeInput == "function" && (t._elementEvents.lineHeightInput_onBeforeInput = e.lineHeightBeforeInput), typeof e.lineHeightAfterInput == "function" && (t._elementEvents.lineHeightInput_onAfterInput = e.lineHeightAfterInput), typeof e.lineHeightBeforeBlur == "function" && (t._elementEvents.lineHeightInput_onBeforeBlur = e.lineHeightBeforeBlur), typeof e.lineHeightAfterBlur == "function" && (t._elementEvents.lineHeightInput_onAfterBlur = e.lineHeightAfterBlur), typeof e.fontFamilySelectBeforeClick == "function" && (t._elementEvents.fontFamilySelect_onBeforeClick = e.fontFamilySelectBeforeClick), typeof e.fontFamilySelectAfterClick == "function" && (t._elementEvents.fontFamilySelect_onAfterClick = e.fontFamilySelectAfterClick), typeof e.colorTextSelectBeforeClick == "function" && (t._elementEvents.colorTextSelect_onBeforeClick = e.colorTextSelectBeforeClick), typeof e.colorTextSelectAfterClick == "function" && (t._elementEvents.colorTextSelect_onAfterClick = e.colorTextSelectAfterClick), typeof e.colorTextSelectBoxBeforeClick == "function" && (t._elementEvents.colorTextSelectBox_onBeforeClick = e.colorTextSelectBoxBeforeClick), typeof e.colorTextSelectBoxAfterClick == "function" && (t._elementEvents.colorTextSelectBox_onAfterClick = e.colorTextSelectBoxAfterClick), typeof e.colorText0BeforeClick == "function" && (t._elementEvents.colorText0_onBeforeClick = e.colorText0BeforeClick), typeof e.colorText0AfterClick == "function" && (t._elementEvents.colorText0_onAfterClick = e.colorText0AfterClick), typeof e.colorText1BeforeClick == "function" && (t._elementEvents.colorText1_onBeforeClick = e.colorText1BeforeClick), typeof e.colorText1AfterClick == "function" && (t._elementEvents.colorText1_onAfterClick = e.colorText1AfterClick), typeof e.colorText2BeforeClick == "function" && (t._elementEvents.colorText2_onBeforeClick = e.colorText2BeforeClick), typeof e.colorText2AfterClick == "function" && (t._elementEvents.colorText2_onAfterClick = e.colorText2AfterClick), typeof e.colorText3BeforeClick == "function" && (t._elementEvents.colorText3_onBeforeClick = e.colorText3BeforeClick), typeof e.colorText3AfterClick == "function" && (t._elementEvents.colorText3_onAfterClick = e.colorText3AfterClick), typeof e.colorText4BeforeClick == "function" && (t._elementEvents.colorText4_onBeforeClick = e.colorText4BeforeClick), typeof e.colorText4AfterClick == "function" && (t._elementEvents.colorText4_onAfterClick = e.colorText4AfterClick), typeof e.colorText5BeforeClick == "function" && (t._elementEvents.colorText5_onBeforeClick = e.colorText5BeforeClick), typeof e.colorText5AfterClick == "function" && (t._elementEvents.colorText5_onAfterClick = e.colorText5AfterClick), typeof e.colorText6BeforeClick == "function" && (t._elementEvents.colorText6_onBeforeClick = e.colorText6BeforeClick), typeof e.colorText6AfterClick == "function" && (t._elementEvents.colorText6_onAfterClick = e.colorText6AfterClick), typeof e.colorText7BeforeClick == "function" && (t._elementEvents.colorText7_onBeforeClick = e.colorText7BeforeClick), typeof e.colorText7AfterClick == "function" && (t._elementEvents.colorText7_onAfterClick = e.colorText7AfterClick), typeof e.colorTextRBeforeClick == "function" && (t._elementEvents.colorTextRInput_onBeforeClick = e.colorTextRBeforeClick), typeof e.colorTextRAfterClick == "function" && (t._elementEvents.colorTextRInput_onAfterClick = e.colorTextRAfterClick), typeof e.colorTextRBeforeInput == "function" && (t._elementEvents.colorTextRInput_onBeforeInput = e.colorTextRBeforeInput), typeof e.colorTextRAfterInput == "function" && (t._elementEvents.colorTextRInput_onAfterInput = e.colorTextRAfterInput), typeof e.colorTextRBeforeBlur == "function" && (t._elementEvents.colorTextRInput_onBeforeBlur = e.colorTextRBeforeBlur), typeof e.colorTextRAfterBlur == "function" && (t._elementEvents.colorTextRInput_onAfterBlur = e.colorTextRAfterBlur), typeof e.colorTextGBeforeClick == "function" && (t._elementEvents.colorTextGInput_onBeforeClick = e.colorTextGBeforeClick), typeof e.colorTextGAfterClick == "function" && (t._elementEvents.colorTextGInput_onAfterClick = e.colorTextGAfterClick), typeof e.colorTextGBeforeInput == "function" && (t._elementEvents.colorTextGInput_onBeforeInput = e.colorTextGBeforeInput), typeof e.colorTextGAfterInput == "function" && (t._elementEvents.colorTextGInput_onAfterInput = e.colorTextGAfterInput), typeof e.colorTextGBeforeBlur == "function" && (t._elementEvents.colorTextGInput_onBeforeBlur = e.colorTextGBeforeBlur), typeof e.colorTextGAfterBlur == "function" && (t._elementEvents.colorTextGInput_onAfterBlur = e.colorTextGAfterBlur), typeof e.colorTextBBeforeClick == "function" && (t._elementEvents.colorTextBInput_onBeforeClick = e.colorTextBBeforeClick), typeof e.colorTextBAfterClick == "function" && (t._elementEvents.colorTextBInput_onAfterClick = e.colorTextBAfterClick), typeof e.colorTextBBeforeInput == "function" && (t._elementEvents.colorTextBInput_onBeforeInput = e.colorTextBBeforeInput), typeof e.colorTextBAfterInput == "function" && (t._elementEvents.colorTextBInput_onAfterInput = e.colorTextBAfterInput), typeof e.colorTextBBeforeBlur == "function" && (t._elementEvents.colorTextBInput_onBeforeBlur = e.colorTextBBeforeBlur), typeof e.colorTextBAfterBlur == "function" && (t._elementEvents.colorTextBInput_onAfterBlur = e.colorTextBAfterBlur), typeof e.colorTextOpacityBeforeClick == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeClick = e.colorTextOpacityBeforeClick), typeof e.colorTextOpacityAfterClick == "function" && (t._elementEvents.colorTextOpacityInput_onAfterClick = e.colorTextOpacityAfterClick), typeof e.colorTextOpacityBeforeInput == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeInput = e.colorTextOpacityBeforeInput), typeof e.colorTextOpacityAfterInput == "function" && (t._elementEvents.colorTextOpacityInput_onAfterInput = e.colorTextOpacityAfterInput), typeof e.colorTextOpacityBeforeBlur == "function" && (t._elementEvents.colorTextOpacityInput_onBeforeBlur = e.colorTextOpacityBeforeBlur), typeof e.colorTextOpacityAfterBlur == "function" && (t._elementEvents.colorTextOpacityInput_onAfterBlur = e.colorTextOpacityAfterBlur), typeof e.colorBackSelectBeforeClick == "function" && (t._elementEvents.colorBackSelect_onBeforeClick = e.colorBackSelectBeforeClick), typeof e.colorBackSelectAfterClick == "function" && (t._elementEvents.colorBackSelect_onAfterClick = e.colorBackSelectAfterClick), typeof e.colorBackSelectBoxBeforeClick == "function" && (t._elementEvents.colorBackSelectBox_onBeforeClick = e.colorBackSelectBoxBeforeClick), typeof e.colorBackSelectBoxAfterClick == "function" && (t._elementEvents.colorBackSelectBox_onAfterClick = e.colorBackSelectBoxAfterClick), typeof e.colorBack0BeforeClick == "function" && (t._elementEvents.colorBack0_onBeforeClick = e.colorBack0BeforeClick), typeof e.colorBack0AfterClick == "function" && (t._elementEvents.colorBack0_onAfterClick = e.colorBack0AfterClick), typeof e.colorBack1BeforeClick == "function" && (t._elementEvents.colorBack1_onBeforeClick = e.colorBack1BeforeClick), typeof e.colorBack1AfterClick == "function" && (t._elementEvents.colorBack1_onAfterClick = e.colorBack1AfterClick), typeof e.colorBack2BeforeClick == "function" && (t._elementEvents.colorBack2_onBeforeClick = e.colorBack2BeforeClick), typeof e.colorBack2AfterClick == "function" && (t._elementEvents.colorBack2_onAfterClick = e.colorBack2AfterClick), typeof e.colorBack3BeforeClick == "function" && (t._elementEvents.colorBack3_onBeforeClick = e.colorBack3BeforeClick), typeof e.colorBack3AfterClick == "function" && (t._elementEvents.colorBack3_onAfterClick = e.colorBack3AfterClick), typeof e.colorBack4BeforeClick == "function" && (t._elementEvents.colorBack4_onBeforeClick = e.colorBack4BeforeClick), typeof e.colorBack4AfterClick == "function" && (t._elementEvents.colorBack4_onAfterClick = e.colorBack4AfterClick), typeof e.colorBack5BeforeClick == "function" && (t._elementEvents.colorBack5_onBeforeClick = e.colorBack5BeforeClick), typeof e.colorBack5AfterClick == "function" && (t._elementEvents.colorBack5_onAfterClick = e.colorBack5AfterClick), typeof e.colorBack6BeforeClick == "function" && (t._elementEvents.colorBack6_onBeforeClick = e.colorBack6BeforeClick), typeof e.colorBack6AfterClick == "function" && (t._elementEvents.colorBack6_onAfterClick = e.colorBack6AfterClick), typeof e.colorBack7BeforeClick == "function" && (t._elementEvents.colorBack7_onBeforeClick = e.colorBack7BeforeClick), typeof e.colorBack7AfterClick == "function" && (t._elementEvents.colorBack7_onAfterClick = e.colorBack7AfterClick), typeof e.colorBackRBeforeClick == "function" && (t._elementEvents.colorBackRInput_onBeforeClick = e.colorBackRBeforeClick), typeof e.colorBackRAfterClick == "function" && (t._elementEvents.colorBackRInput_onAfterClick = e.colorBackRAfterClick), typeof e.colorBackRBeforeInput == "function" && (t._elementEvents.colorBackRInput_onBeforeInput = e.colorBackRBeforeInput), typeof e.colorBackRAfterInput == "function" && (t._elementEvents.colorBackRInput_onAfterInput = e.colorBackRAfterInput), typeof e.colorBackRBeforeBlur == "function" && (t._elementEvents.colorBackRInput_onBeforeBlur = e.colorBackRBeforeBlur), typeof e.colorBackRAfterBlur == "function" && (t._elementEvents.colorBackRInput_onAfterBlur = e.colorBackRAfterBlur), typeof e.colorBackGBeforeClick == "function" && (t._elementEvents.colorBackGInput_onBeforeClick = e.colorBackGBeforeClick), typeof e.colorBackGAfterClick == "function" && (t._elementEvents.colorBackGInput_onAfterClick = e.colorBackGAfterClick), typeof e.colorBackGBeforeInput == "function" && (t._elementEvents.colorBackGInput_onBeforeInput = e.colorBackGBeforeInput), typeof e.colorBackGAfterInput == "function" && (t._elementEvents.colorBackGInput_onAfterInput = e.colorBackGAfterInput), typeof e.colorBackGBeforeBlur == "function" && (t._elementEvents.colorBackGInput_onBeforeBlur = e.colorBackGBeforeBlur), typeof e.colorBackGAfterBlur == "function" && (t._elementEvents.colorBackGInput_onAfterBlur = e.colorBackGAfterBlur), typeof e.colorBackBBeforeClick == "function" && (t._elementEvents.colorBackBInput_onBeforeClick = e.colorBackBBeforeClick), typeof e.colorBackBAfterClick == "function" && (t._elementEvents.colorBackBInput_onAfterClick = e.colorBackBAfterClick), typeof e.colorBackBBeforeInput == "function" && (t._elementEvents.colorBackBInput_onBeforeInput = e.colorBackBBeforeInput), typeof e.colorBackBAfterInput == "function" && (t._elementEvents.colorBackBInput_onAfterInput = e.colorBackBAfterInput), typeof e.colorBackBBeforeBlur == "function" && (t._elementEvents.colorBackBInput_onBeforeBlur = e.colorBackBBeforeBlur), typeof e.colorBackBAfterBlur == "function" && (t._elementEvents.colorBackBInput_onAfterBlur = e.colorBackBAfterBlur), typeof e.colorBackOpacityBeforeClick == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeClick = e.colorBackOpacityBeforeClick), typeof e.colorBackOpacityAfterClick == "function" && (t._elementEvents.colorBackOpacityInput_onAfterClick = e.colorBackOpacityAfterClick), typeof e.colorBackOpacityBeforeInput == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeInput = e.colorBackOpacityBeforeInput), typeof e.colorBackOpacityAfterInput == "function" && (t._elementEvents.colorBackOpacityInput_onAfterInput = e.colorBackOpacityAfterInput), typeof e.colorBackOpacityBeforeBlur == "function" && (t._elementEvents.colorBackOpacityInput_onBeforeBlur = e.colorBackOpacityBeforeBlur), typeof e.colorBackOpacityAfterBlur == "function" && (t._elementEvents.colorBackOpacityInput_onAfterBlur = e.colorBackOpacityAfterBlur), typeof e.formatClearBeforeClick == "function" && (t._elementEvents.formatClearButton_onBeforeClick = e.formatClearBeforeClick), typeof e.formatClearAfterClick == "function" && (t._elementEvents.formatClearButton_onAfterClick = e.formatClearAfterClick), typeof e.undoBeforeClick == "function" && (t._elementEvents.undoButton_onBeforeClick = e.undoBeforeClick), typeof e.undoAfterClick == "function" && (t._elementEvents.undoButton_onAfterClick = e.undoAfterClick), typeof e.redoBeforeClick == "function" && (t._elementEvents.redoButton_onBeforeClick = e.redoBeforeClick), typeof e.redoAfterClick == "function" && (t._elementEvents.redoButton_onAfterClick = e.redoAfterClick), typeof e.helpBeforeClick == "function" && (t._elementEvents.helpButton_onBeforeClick = e.helpBeforeClick), typeof e.helpAfterClick == "function" && (t._elementEvents.helpButton_onAfterClick = e.helpAfterClick), typeof e.modalBackBeforeClick == "function" && (t._elementEvents.modalBack_onBeforeClick = e.modalBackBeforeClick), typeof e.modalBackAfterClick == "function" && (t._elementEvents.modalBack_onAfterClick = e.modalBackAfterClick), typeof e.attLinkModalBeforeClick == "function" && (t._elementEvents.attLinkModal_onBeforeClick = e.attLinkModalBeforeClick), typeof e.attLinkModalAfterClick == "function" && (t._elementEvents.attLinkModal_onAfterClick = e.attLinkModalAfterClick), typeof e.attLinkTextBeforeInput == "function" && (t._elementEvents.attLinkText_onBeforeInput = e.attLinkTextBeforeInput), typeof e.attLinkTextAfterInput == "function" && (t._elementEvents.attLinkText_onAfterInput = e.attLinkTextAfterInput), typeof e.attLinkTextBeforeBlur == "function" && (t._elementEvents.attLinkText_onBeforeBlur = e.attLinkTextBeforeBlur), typeof e.attLinkTextAfterBlur == "function" && (t._elementEvents.attLinkText_onAfterBlur = e.attLinkTextAfterBlur), typeof e.attLinkHrefBeforeInput == "function" && (t._elementEvents.attLinkHref_onBeforeInput = e.attLinkHrefBeforeInput), typeof e.attLinkHrefAfterInput == "function" && (t._elementEvents.attLinkHref_onAfterInput = e.attLinkHrefAfterInput), typeof e.attLinkHrefBeforeBlur == "function" && (t._elementEvents.attLinkHref_onBeforeBlur = e.attLinkHrefBeforeBlur), typeof e.attLinkHrefAfterBlur == "function" && (t._elementEvents.attLinkHref_onAfterBlur = e.attLinkHrefAfterBlur), typeof e.attLinkInsertBeforeClick == "function" && (t._elementEvents.attLinkInsertButton_onBeforeClick = e.attLinkInsertBeforeClick), typeof e.attLinkInsertAfterClick == "function" && (t._elementEvents.attLinkInsertButton_onAfterClick = e.attLinkInsertAfterClick), typeof e.attFileModalBeforeClick == "function" && (t._elementEvents.attFileModal_onBeforeClick = e.attFileModalBeforeClick), typeof e.attFileModalAfterClick == "function" && (t._elementEvents.attFileModal_onAfterClick = e.attFileModalAfterClick), typeof e.attFileUploadBeforeClick == "function" && (t._elementEvents.attFileUploadButton_onBeforeClick = e.attFileUploadBeforeClick), typeof e.attFileUploadAfterClick == "function" && (t._elementEvents.attFileUploadButton_onAfterClick = e.attFileUploadAfterClick), typeof e.attFileUploadDivBeforeDragover == "function" && (t._elementEvents.attFileUploadDiv_onBeforeDragover = e.attFileUploadDivBeforeDragover), typeof e.attFileUploadDivAfterDragover == "function" && (t._elementEvents.attFileUploadDiv_onAfterDragover = e.attFileUploadDivAfterDragover), typeof e.attFileUploadDivBeforeDrop == "function" && (t._elementEvents.attFileUploadDiv_onBeforeDrop = e.attFileUploadDivBeforeDrop), typeof e.attFileUploadDivAfterDrop == "function" && (t._elementEvents.attFileUploadDiv_onAfterDrop = e.attFileUploadDivAfterDrop), typeof e.attFileUploadDivBeforeClick == "function" && (t._elementEvents.attFileUploadDiv_onBeforeClick = e.attFileUploadDivBeforeClick), typeof e.attFileUploadDivAfterClick == "function" && (t._elementEvents.attFileUploadDiv_onAfterClick = e.attFileUploadDivAfterClick), typeof e.attFileUploadBeforeInput == "function" && (t._elementEvents.attFileUpload_onBeforeInput = e.attFileUploadBeforeInput), typeof e.attFileUploadAfterInput == "function" && (t._elementEvents.attFileUpload_onAfterInput = e.attFileUploadAfterInput), typeof e.attFileUploadBeforeBlur == "function" && (t._elementEvents.attFileUpload_onBeforeBlur = e.attFileUploadBeforeBlur), typeof e.attFileUploadAfterBlur == "function" && (t._elementEvents.attFileUpload_onAfterBlur = e.attFileUploadAfterBlur), typeof e.attFileInsertBeforeClick == "function" && (t._elementEvents.attFileInsertButton_onBeforeClick = e.attFileInsertBeforeClick), typeof e.attFileInsertAfterClick == "function" && (t._elementEvents.attFileInsertButton_onAfterClick = e.attFileInsertAfterClick), typeof e.attLinkTooltipEditBeforeClick == "function" && (t._elementEvents.attLinkTooltipEditButton_onBeforeClick = e.attLinkTooltipEditBeforeClick), typeof e.attLinkTooltipEditAfterClick == "function" && (t._elementEvents.attLinkTooltipEditButton_onAfterClick = e.attLinkTooltipEditAfterClick), typeof e.attLinkTooltipUnlinkBeforeClick == "function" && (t._elementEvents.attLinkTooltipUnlinkButton_onBeforeClick = e.attLinkTooltipUnlinkBeforeClick), typeof e.attLinkTooltipUnlinkAfterClick == "function" && (t._elementEvents.attLinkTooltipUnlinkButton_onAfterClick = e.attLinkTooltipUnlinkAfterClick), typeof e.attImageModalBeforeClick == "function" && (t._elementEvents.attImageModal_onBeforeClick = e.attImageModalBeforeClick), typeof e.attImageModalAfterClick == "function" && (t._elementEvents.attImageModal_onAfterClick = e.attImageModalAfterClick), typeof e.attImageUploadViewBeforeDragover == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeDragover = e.attImageUploadViewBeforeDragover), typeof e.attImageUploadViewAfterDragover == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterDragover = e.attImageUploadViewAfterDragover), typeof e.attImageUploadViewBeforeDrop == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeDrop = e.attImageUploadViewBeforeDrop), typeof e.attImageUploadViewAfterDrop == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterDrop = e.attImageUploadViewAfterDrop), typeof e.attImageUploadViewBeforeClick == "function" && (t._elementEvents.attImageUploadButtonAndView_onBeforeClick = e.attImageUploadViewBeforeClick), typeof e.attImageUploadViewAfterClick == "function" && (t._elementEvents.attImageUploadButtonAndView_onAfterClick = e.attImageUploadViewAfterClick), typeof e.attImageViewPreBeforeClick == "function" && (t._elementEvents.attImageViewPreButton_onBeforeClick = e.attImageViewPreBeforeClick), typeof e.attImageViewPreAfterClick == "function" && (t._elementEvents.attImageViewPreButton_onAfterClick = e.attImageViewPreAfterClick), typeof e.attImageViewNextBeforeClick == "function" && (t._elementEvents.attImageViewNextButton_onBeforeClick = e.attImageViewNextBeforeClick), typeof e.attImageViewNextAfterClick == "function" && (t._elementEvents.attImageViewNextButton_onAfterClick = e.attImageViewNextAfterClick), typeof e.attImageUploadBeforeInput == "function" && (t._elementEvents.attImageUpload_onBeforeInput = e.attImageUploadBeforeInput), typeof e.attImageUploadAfterInput == "function" && (t._elementEvents.attImageUpload_onAfterInput = e.attImageUploadAfterInput), typeof e.attImageUploadBeforeBlur == "function" && (t._elementEvents.attImageUpload_onBeforeBlur = e.attImageUploadBeforeBlur), typeof e.attImageUploadAfterBlur == "function" && (t._elementEvents.attImageUpload_onAfterBlur = e.attImageUploadAfterBlur), typeof e.attImageURLBeforeInput == "function" && (t._elementEvents.attImageURL_onBeforeInput = e.attImageURLBeforeInput), typeof e.attImageURLAfterInput == "function" && (t._elementEvents.attImageURL_onAfterInput = e.attImageURLAfterInput), typeof e.attImageURLBeforeBlur == "function" && (t._elementEvents.attImageURL_onBeforeBlur = e.attImageURLBeforeBlur), typeof e.attImageURLAfterBlur == "function" && (t._elementEvents.attImageURL_onAfterBlur = e.attImageURLAfterBlur), typeof e.attImageInsertBeforeClick == "function" && (t._elementEvents.attImageInsertButton_onBeforeClick = e.attImageInsertBeforeClick), typeof e.attImageInsertAfterClick == "function" && (t._elementEvents.attImageInsertButton_onAfterClick = e.attImageInsertAfterClick), typeof e.attVideoModalBeforeClick == "function" && (t._elementEvents.attVideoModal_onBeforeClick = e.attVideoModalBeforeClick), typeof e.attVideoModalAfterClick == "function" && (t._elementEvents.attVideoModal_onAfterClick = e.attVideoModalAfterClick), typeof e.attVideoEmbedIdBeforeInput == "function" && (t._elementEvents.attVideoEmbedId_onBeforeInput = e.attVideoEmbedIdBeforeInput), typeof e.attVideoEmbedIdAfterInput == "function" && (t._elementEvents.attVideoEmbedId_onAfterInput = e.attVideoEmbedIdAfterInput), typeof e.attVideoEmbedIdBeforeBlur == "function" && (t._elementEvents.attVideoEmbedId_onBeforeBlur = e.attVideoEmbedIdBeforeBlur), typeof e.attVideoEmbedIdAfterBlur == "function" && (t._elementEvents.attVideoEmbedId_onAfterBlur = e.attVideoEmbedIdAfterBlur), typeof e.attVideoWidthBeforeInput == "function" && (t._elementEvents.attVideoWidth_onBeforeInput = e.attVideoWidthBeforeInput), typeof e.attVideoWidthAfterInput == "function" && (t._elementEvents.attVideoWidth_onAfterInput = e.attVideoWidthAfterInput), typeof e.attVideoWidthBeforeBlur == "function" && (t._elementEvents.attVideoWidth_onBeforeBlur = e.attVideoWidthBeforeBlur), typeof e.attVideoWidthAfterBlur == "function" && (t._elementEvents.attVideoWidth_onAfterBlur = e.attVideoWidthAfterBlur), typeof e.attVideoHeightBeforeInput == "function" && (t._elementEvents.attVideoHeight_onBeforeInput = e.attVideoHeightBeforeInput), typeof e.attVideoHeightAfterInput == "function" && (t._elementEvents.attVideoHeight_onAfterInput = e.attVideoHeightAfterInput), typeof e.attVideoHeightBeforeBlur == "function" && (t._elementEvents.attVideoHeight_onBeforeBlur = e.attVideoHeightBeforeBlur), typeof e.attVideoHeightAfterBlur == "function" && (t._elementEvents.attVideoHeight_onAfterBlur = e.attVideoHeightAfterBlur), typeof e.attVideoInsertBeforeClick == "function" && (t._elementEvents.attVideoInsertButton_onBeforeClick = e.attVideoInsertBeforeClick), typeof e.attVideoInsertAfterClick == "function" && (t._elementEvents.attVideoInsertButton_onAfterClick = e.attVideoInsertAfterClick), typeof e.attImageAndVideoTooltipWidthBeforeInput == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeInput = e.attImageAndVideoTooltipWidthBeforeInput), typeof e.attImageAndVideoTooltipWidthAfterInput == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterInput = e.attImageAndVideoTooltipWidthAfterInput), typeof e.attImageAndVideoTooltipWidthBeforeBlur == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeBlur = e.attImageAndVideoTooltipWidthBeforeBlur), typeof e.attImageAndVideoTooltipWidthAfterBlur == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterBlur = e.attImageAndVideoTooltipWidthAfterBlur), typeof e.attImageAndVideoTooltipWidthBeforeKeyup == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup = e.attImageAndVideoTooltipWidthBeforeKeyup), typeof e.attImageAndVideoTooltipWidthAfterKeyup == "function" && (t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup = e.attImageAndVideoTooltipWidthAfterKeyup), typeof e.attImageAndVideoTooltipFloatRadioNoneBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onBeforeClick = e.attImageAndVideoTooltipFloatRadioNoneBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioNoneAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onAfterClick = e.attImageAndVideoTooltipFloatRadioNoneAfterClick), typeof e.attImageAndVideoTooltipFloatRadioLeftBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onBeforeClick = e.attImageAndVideoTooltipFloatRadioLeftBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioLeftAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onAfterClick = e.attImageAndVideoTooltipFloatRadioLeftAfterClick), typeof e.attImageAndVideoTooltipFloatRadioRightBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onBeforeClick = e.attImageAndVideoTooltipFloatRadioRightBeforeClick), typeof e.attImageAndVideoTooltipFloatRadioRightAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onAfterClick = e.attImageAndVideoTooltipFloatRadioRightAfterClick), typeof e.attImageAndVideoTooltipShapeRadioSquareBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onBeforeClick = e.attImageAndVideoTooltipShapeRadioSquareBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioSquareAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onAfterClick = e.attImageAndVideoTooltipShapeRadioSquareAfterClick), typeof e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onBeforeClick = e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioRadiusAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onAfterClick = e.attImageAndVideoTooltipShapeRadioRadiusAfterClick), typeof e.attImageAndVideoTooltipShapeRadioCircleBeforeClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onBeforeClick = e.attImageAndVideoTooltipShapeRadioCircleBeforeClick), typeof e.attImageAndVideoTooltipShapeRadioCircleAfterClick == "function" && (t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onAfterClick = e.attImageAndVideoTooltipShapeRadioCircleAfterClick), typeof e.helpModalBeforeClick == "function" && (t._elementEvents.helpModal_onBeforeClick = e.helpModalBeforeClick), typeof e.helpModalAfterClick == "function" && (t._elementEvents.helpModal_onAfterClick = e.helpModalAfterClick), typeof e.placeholderBeforeClick == "function" && (t._elementEvents.placeholder_onBeforeClick = e.placeholderBeforeClick), typeof e.placeholderAfterClick == "function" && (t._elementEvents.placeholder_onAfterClick = e.placeholderAfterClick)), E(), I("mounted", t);
|
|
884
|
-
}, D = () => {
|
|
885
|
-
de(x), k.value && (m.unmountNote(k.value), H.disconnect());
|
|
912
|
+
T.disconnect(), c.value = !0, o.__hnoteDestroyed = !0, B.value = null;
|
|
886
913
|
};
|
|
887
|
-
return
|
|
888
|
-
|
|
889
|
-
}),
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
914
|
+
return Q(N), p(() => {
|
|
915
|
+
r.value = !1, z();
|
|
916
|
+
}), a(H, (o) => {
|
|
917
|
+
!r.value || c.value || (C(), F("responsive-change", o));
|
|
918
|
+
}), a(
|
|
919
|
+
() => e.modelValue,
|
|
920
|
+
(o) => {
|
|
921
|
+
if (c.value || !B.value) return;
|
|
922
|
+
const n = B.value.getNoteData();
|
|
923
|
+
Y(n, o) || B.value.setNoteData(o);
|
|
924
|
+
}
|
|
925
|
+
), a(
|
|
926
|
+
() => e.visible,
|
|
927
|
+
(o) => {
|
|
928
|
+
const n = !!o;
|
|
929
|
+
n !== v.value && (v.value = n);
|
|
930
|
+
}
|
|
931
|
+
), a(
|
|
932
|
+
() => e.editMode,
|
|
933
|
+
(o) => {
|
|
934
|
+
o && o !== A.value && (A.value = o, S());
|
|
935
|
+
}
|
|
936
|
+
), a(
|
|
937
|
+
() => e.required,
|
|
938
|
+
(o) => {
|
|
939
|
+
const n = !!o;
|
|
940
|
+
n !== I.value && (I.value = n);
|
|
941
|
+
}
|
|
942
|
+
), a(
|
|
943
|
+
() => e.tabIndex,
|
|
944
|
+
(o) => {
|
|
945
|
+
var t, l;
|
|
946
|
+
const n = o === null || o === "" ? null : Number(o);
|
|
947
|
+
if (n !== _.value) {
|
|
948
|
+
_.value = n;
|
|
949
|
+
const f = (l = (t = B.value) == null ? void 0 : t._elements) == null ? void 0 : l.textarea;
|
|
950
|
+
f && (n == null ? f.removeAttribute("tabIndex") : f.setAttribute("tabIndex", String(n)));
|
|
951
|
+
}
|
|
908
952
|
}
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
}),
|
|
912
|
-
|
|
953
|
+
), a(() => e.class, () => {
|
|
954
|
+
!r.value || c.value || C();
|
|
955
|
+
}), a(() => [e.noteModeByDevice, e.toolPosition, e.toolDefaultLine, e.toolToggle], () => {
|
|
956
|
+
!r.value || c.value || C();
|
|
957
|
+
}), a(() => [e.textareaWidth, e.textareaHeight, e.textareaMaxWidth, e.textareaMaxHeight, e.textareaHeightIsModify], () => {
|
|
958
|
+
!r.value || c.value || C();
|
|
959
|
+
}), a(() => [e.placeholderIsVisible, e.placeholderAddTop, e.placeholderAddLeft, e.placeholderWidth, e.placeholderColor, e.placeholderBackgroundColor, e.placeholderTitle, e.placeholderTextContent], () => {
|
|
960
|
+
!r.value || c.value || C();
|
|
961
|
+
}), a(() => [e.attFilePreventTypes, e.attFileAcceptTypes, e.attFileMaxSize, e.attImagePreventTypes, e.attImageAcceptTypes, e.attImageMaxSize], () => {
|
|
962
|
+
!r.value || c.value || C();
|
|
963
|
+
}), a(() => [e.defaultFontSize, e.defaultLineHeight, e.defaultFontFamily, e.defaultToolFontFamily, e.addFontFamily, e.removeFontFamily, e.language, e.recodeLimit], () => {
|
|
964
|
+
!r.value || c.value || C();
|
|
965
|
+
}), a(() => [e.sizeLevelDesktop, e.sizeLevelMobile, e.invertColor, e.color], () => {
|
|
966
|
+
!r.value || c.value || C();
|
|
967
|
+
}), a(() => [e.usingParagraphStyle, e.usingBold, e.usingUnderline, e.usingItalic, e.usingUl, e.usingOl, e.usingTextAlign, e.usingAttLink, e.usingAttFile, e.usingAttImage, e.usingAttVideo, e.usingFontSize, e.usingLetterSpacing, e.usingLineHeight, e.usingFontFamily, e.usingColorText, e.usingColorBack, e.usingFormatClear, e.usingUndo, e.usingRedo, e.usingHelp, e.usingParagraphAllStyle, e.usingCharacterStyle, e.usingCharacterSize, e.usingAttachFile, e.usingDo], () => {
|
|
968
|
+
!r.value || c.value || C();
|
|
969
|
+
}), {
|
|
970
|
+
editorWrap: x,
|
|
913
971
|
props: e,
|
|
914
|
-
bindAttrs:
|
|
915
|
-
responsiveClassList:
|
|
916
|
-
visibleClass:
|
|
917
|
-
requiredClass:
|
|
918
|
-
editModeClass:
|
|
972
|
+
bindAttrs: J,
|
|
973
|
+
responsiveClassList: D,
|
|
974
|
+
visibleClass: W,
|
|
975
|
+
requiredClass: G,
|
|
976
|
+
editModeClass: P
|
|
919
977
|
};
|
|
920
978
|
}
|
|
921
979
|
});
|
|
922
|
-
function
|
|
923
|
-
return
|
|
980
|
+
function Fe(e, F, g, x, B, m) {
|
|
981
|
+
return oe(), ne("div", {
|
|
924
982
|
ref: "editorWrap",
|
|
925
|
-
class:
|
|
926
|
-
style:
|
|
983
|
+
class: le(["hison-note", "hison-wrap", ...e.responsiveClassList, e.visibleClass, e.requiredClass, e.editModeClass]),
|
|
984
|
+
style: ie(e.props.style)
|
|
927
985
|
}, [
|
|
928
|
-
|
|
986
|
+
fe("div", ce({ "data-vanillanote": "" }, e.bindAttrs), null, 16)
|
|
929
987
|
], 6);
|
|
930
988
|
}
|
|
931
|
-
const
|
|
989
|
+
const se = /* @__PURE__ */ ge(ve, [["render", Fe]]);
|
|
932
990
|
export {
|
|
933
|
-
|
|
991
|
+
se as default
|
|
934
992
|
};
|