vue2-bbl-editor 1.5.2 → 1.5.4
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/vue2-bbl-editor.common.js +1178 -273
- package/dist/vue2-bbl-editor.css +1 -1
- package/dist/vue2-bbl-editor.umd.js +1178 -273
- package/dist/vue2-bbl-editor.umd.min.js +1178 -273
- package/package.json +1 -1
|
@@ -96,13 +96,6 @@ module.exports =
|
|
|
96
96
|
/* unused harmony reexport * */
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
/***/ }),
|
|
100
|
-
|
|
101
|
-
/***/ "014e":
|
|
102
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
103
|
-
|
|
104
|
-
// extracted by mini-css-extract-plugin
|
|
105
|
-
|
|
106
99
|
/***/ }),
|
|
107
100
|
|
|
108
101
|
/***/ "0450":
|
|
@@ -160,32 +153,17 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
160
153
|
|
|
161
154
|
/***/ }),
|
|
162
155
|
|
|
163
|
-
/***/ "
|
|
156
|
+
/***/ "0bfc":
|
|
164
157
|
/***/ (function(module, exports, __webpack_require__) {
|
|
165
158
|
|
|
166
159
|
// extracted by mini-css-extract-plugin
|
|
167
160
|
|
|
168
161
|
/***/ }),
|
|
169
162
|
|
|
170
|
-
/***/ "
|
|
171
|
-
/***/ (function(module,
|
|
172
|
-
|
|
173
|
-
"use strict";
|
|
174
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkModal_vue_vue_type_style_index_0_id_744289fc_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("52d7");
|
|
175
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkModal_vue_vue_type_style_index_0_id_744289fc_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkModal_vue_vue_type_style_index_0_id_744289fc_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
176
|
-
/* unused harmony reexport * */
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
/***/ }),
|
|
180
|
-
|
|
181
|
-
/***/ "1508":
|
|
182
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
183
|
-
|
|
184
|
-
"use strict";
|
|
185
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BubbleMenu_vue_vue_type_style_index_0_id_d228d170_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a49f");
|
|
186
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BubbleMenu_vue_vue_type_style_index_0_id_d228d170_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BubbleMenu_vue_vue_type_style_index_0_id_d228d170_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
187
|
-
/* unused harmony reexport * */
|
|
163
|
+
/***/ "0c93":
|
|
164
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
188
165
|
|
|
166
|
+
// extracted by mini-css-extract-plugin
|
|
189
167
|
|
|
190
168
|
/***/ }),
|
|
191
169
|
|
|
@@ -931,12 +909,465 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
931
909
|
|
|
932
910
|
/***/ }),
|
|
933
911
|
|
|
934
|
-
/***/ "
|
|
912
|
+
/***/ "215c":
|
|
935
913
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
936
914
|
|
|
937
915
|
"use strict";
|
|
938
|
-
|
|
939
|
-
|
|
916
|
+
|
|
917
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Menus/LinkBubbleMenu.vue?vue&type=template&id=b9dcc6ea&scoped=true
|
|
918
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.showMenu && _vm.editor && _vm.isLinkActive)?_c('div',{staticClass:"link-bubble-menu",style:(_vm.menuStyle)},[_c('div',{staticClass:"bubble-menu-content"},[_c('button',{staticClass:"menu-btn",attrs:{"title":"Edit Link"},on:{"click":_vm.editLink}},[_c('Edit')],1),_c('div',{staticClass:"bbl-menu-divider"}),_c('button',{staticClass:"menu-btn",attrs:{"title":"Remove Link"},on:{"click":_vm.removeLink}},[_c('Unlink')],1),_c('div',{staticClass:"bbl-menu-divider"}),_c('button',{staticClass:"menu-btn",attrs:{"title":"Open in New Tab"},on:{"click":_vm.openInNewTab}},[_c('NewTab')],1),_c('div',{staticClass:"bbl-menu-divider"}),_c('button',{staticClass:"menu-btn",attrs:{"title":"Copy Link"},on:{"click":_vm.copyLink}},[_c('Copy')],1)])]):_vm._e()}
|
|
919
|
+
var staticRenderFns = []
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
// CONCATENATED MODULE: ./src/components/Menus/LinkBubbleMenu.vue?vue&type=template&id=b9dcc6ea&scoped=true
|
|
923
|
+
|
|
924
|
+
// EXTERNAL MODULE: ./src/components/svg/index.js + 207 modules
|
|
925
|
+
var svg = __webpack_require__("9f9d");
|
|
926
|
+
|
|
927
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/babel-loader/lib??ref--15!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Menus/LinkBubbleMenu.vue?vue&type=script&lang=js
|
|
928
|
+
function _regenerator() {
|
|
929
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,
|
|
930
|
+
t,
|
|
931
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
932
|
+
n = r.iterator || "@@iterator",
|
|
933
|
+
o = r.toStringTag || "@@toStringTag";
|
|
934
|
+
function i(r, n, o, i) {
|
|
935
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
936
|
+
u = Object.create(c.prototype);
|
|
937
|
+
return _regeneratorDefine2(u, "_invoke", function (r, n, o) {
|
|
938
|
+
var i,
|
|
939
|
+
c,
|
|
940
|
+
u,
|
|
941
|
+
f = 0,
|
|
942
|
+
p = o || [],
|
|
943
|
+
y = !1,
|
|
944
|
+
G = {
|
|
945
|
+
p: 0,
|
|
946
|
+
n: 0,
|
|
947
|
+
v: e,
|
|
948
|
+
a: d,
|
|
949
|
+
f: d.bind(e, 4),
|
|
950
|
+
d: function d(t, r) {
|
|
951
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
function d(r, n) {
|
|
955
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
956
|
+
var o,
|
|
957
|
+
i = p[t],
|
|
958
|
+
d = G.p,
|
|
959
|
+
l = i[2];
|
|
960
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
961
|
+
}
|
|
962
|
+
if (o || r > 1) return a;
|
|
963
|
+
throw y = !0, n;
|
|
964
|
+
}
|
|
965
|
+
return function (o, p, l) {
|
|
966
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
967
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
968
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
969
|
+
try {
|
|
970
|
+
if (f = 2, i) {
|
|
971
|
+
if (c || (o = "next"), t = i[o]) {
|
|
972
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
973
|
+
if (!t.done) return t;
|
|
974
|
+
u = t.value, c < 2 && (c = 0);
|
|
975
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
976
|
+
i = e;
|
|
977
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
978
|
+
} catch (t) {
|
|
979
|
+
i = e, c = 1, u = t;
|
|
980
|
+
} finally {
|
|
981
|
+
f = 1;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
return {
|
|
985
|
+
value: t,
|
|
986
|
+
done: y
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
}(r, o, i), !0), u;
|
|
990
|
+
}
|
|
991
|
+
var a = {};
|
|
992
|
+
function Generator() {}
|
|
993
|
+
function GeneratorFunction() {}
|
|
994
|
+
function GeneratorFunctionPrototype() {}
|
|
995
|
+
t = Object.getPrototypeOf;
|
|
996
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () {
|
|
997
|
+
return this;
|
|
998
|
+
}), t),
|
|
999
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
1000
|
+
function f(e) {
|
|
1001
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
1002
|
+
}
|
|
1003
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () {
|
|
1004
|
+
return this;
|
|
1005
|
+
}), _regeneratorDefine2(u, "toString", function () {
|
|
1006
|
+
return "[object Generator]";
|
|
1007
|
+
}), (_regenerator = function _regenerator() {
|
|
1008
|
+
return {
|
|
1009
|
+
w: i,
|
|
1010
|
+
m: f
|
|
1011
|
+
};
|
|
1012
|
+
})();
|
|
1013
|
+
}
|
|
1014
|
+
function _regeneratorDefine2(e, r, n, t) {
|
|
1015
|
+
var i = Object.defineProperty;
|
|
1016
|
+
try {
|
|
1017
|
+
i({}, "", {});
|
|
1018
|
+
} catch (e) {
|
|
1019
|
+
i = 0;
|
|
1020
|
+
}
|
|
1021
|
+
_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) {
|
|
1022
|
+
function o(r, n) {
|
|
1023
|
+
_regeneratorDefine2(e, r, function (e) {
|
|
1024
|
+
return this._invoke(r, n, e);
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
r ? i ? i(e, r, {
|
|
1028
|
+
value: n,
|
|
1029
|
+
enumerable: !t,
|
|
1030
|
+
configurable: !t,
|
|
1031
|
+
writable: !t
|
|
1032
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
1033
|
+
}, _regeneratorDefine2(e, r, n, t);
|
|
1034
|
+
}
|
|
1035
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
1036
|
+
try {
|
|
1037
|
+
var i = n[a](c),
|
|
1038
|
+
u = i.value;
|
|
1039
|
+
} catch (n) {
|
|
1040
|
+
return void e(n);
|
|
1041
|
+
}
|
|
1042
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
1043
|
+
}
|
|
1044
|
+
function _asyncToGenerator(n) {
|
|
1045
|
+
return function () {
|
|
1046
|
+
var t = this,
|
|
1047
|
+
e = arguments;
|
|
1048
|
+
return new Promise(function (r, o) {
|
|
1049
|
+
var a = n.apply(t, e);
|
|
1050
|
+
function _next(n) {
|
|
1051
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
1052
|
+
}
|
|
1053
|
+
function _throw(n) {
|
|
1054
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
1055
|
+
}
|
|
1056
|
+
_next(void 0);
|
|
1057
|
+
});
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
//
|
|
1061
|
+
//
|
|
1062
|
+
//
|
|
1063
|
+
//
|
|
1064
|
+
//
|
|
1065
|
+
//
|
|
1066
|
+
//
|
|
1067
|
+
//
|
|
1068
|
+
//
|
|
1069
|
+
//
|
|
1070
|
+
//
|
|
1071
|
+
//
|
|
1072
|
+
//
|
|
1073
|
+
//
|
|
1074
|
+
//
|
|
1075
|
+
//
|
|
1076
|
+
//
|
|
1077
|
+
//
|
|
1078
|
+
//
|
|
1079
|
+
//
|
|
1080
|
+
//
|
|
1081
|
+
//
|
|
1082
|
+
//
|
|
1083
|
+
//
|
|
1084
|
+
//
|
|
1085
|
+
//
|
|
1086
|
+
//
|
|
1087
|
+
//
|
|
1088
|
+
//
|
|
1089
|
+
//
|
|
1090
|
+
//
|
|
1091
|
+
//
|
|
1092
|
+
//
|
|
1093
|
+
//
|
|
1094
|
+
//
|
|
1095
|
+
//
|
|
1096
|
+
//
|
|
1097
|
+
//
|
|
1098
|
+
//
|
|
1099
|
+
//
|
|
1100
|
+
//
|
|
1101
|
+
//
|
|
1102
|
+
//
|
|
1103
|
+
//
|
|
1104
|
+
//
|
|
1105
|
+
//
|
|
1106
|
+
//
|
|
1107
|
+
//
|
|
1108
|
+
//
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
/* harmony default export */ var LinkBubbleMenuvue_type_script_lang_js = ({
|
|
1112
|
+
name: 'LinkBubbleMenu',
|
|
1113
|
+
components: {
|
|
1114
|
+
Edit: svg["x" /* Edit */],
|
|
1115
|
+
Unlink: svg["S" /* Unlink */],
|
|
1116
|
+
NewTab: svg["G" /* NewTab */],
|
|
1117
|
+
Copy: svg["u" /* Copy */]
|
|
1118
|
+
},
|
|
1119
|
+
props: {
|
|
1120
|
+
editor: {
|
|
1121
|
+
type: Object,
|
|
1122
|
+
required: true
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
data: function data() {
|
|
1126
|
+
return {
|
|
1127
|
+
showMenu: false,
|
|
1128
|
+
menuStyle: {
|
|
1129
|
+
position: 'fixed',
|
|
1130
|
+
top: '0px',
|
|
1131
|
+
left: '0px',
|
|
1132
|
+
zIndex: 1000
|
|
1133
|
+
},
|
|
1134
|
+
hideTimeout: null,
|
|
1135
|
+
copyFeedback: false
|
|
1136
|
+
};
|
|
1137
|
+
},
|
|
1138
|
+
mounted: function mounted() {
|
|
1139
|
+
this.attachSelectionListeners();
|
|
1140
|
+
},
|
|
1141
|
+
beforeDestroy: function beforeDestroy() {
|
|
1142
|
+
this.removeSelectionListeners();
|
|
1143
|
+
if (this.hideTimeout) {
|
|
1144
|
+
clearTimeout(this.hideTimeout);
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
computed: {
|
|
1148
|
+
isLinkActive: function isLinkActive() {
|
|
1149
|
+
if (!this.editor) return false;
|
|
1150
|
+
return this.editor.isActive('link');
|
|
1151
|
+
},
|
|
1152
|
+
currentLinkUrl: function currentLinkUrl() {
|
|
1153
|
+
if (!this.editor) return '';
|
|
1154
|
+
var attrs = this.editor.getAttributes('link');
|
|
1155
|
+
return attrs.href || '';
|
|
1156
|
+
},
|
|
1157
|
+
displayUrl: function displayUrl() {
|
|
1158
|
+
var url = this.currentLinkUrl;
|
|
1159
|
+
if (!url) return '';
|
|
1160
|
+
|
|
1161
|
+
// Truncate long URLs for display
|
|
1162
|
+
if (url.length > 40) {
|
|
1163
|
+
return url.substring(0, 37) + '...';
|
|
1164
|
+
}
|
|
1165
|
+
return url;
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
methods: {
|
|
1169
|
+
attachSelectionListeners: function attachSelectionListeners() {
|
|
1170
|
+
if (!this.editor) return;
|
|
1171
|
+
this.editor.on('selectionUpdate', this.handleSelectionUpdate);
|
|
1172
|
+
this.editor.on('transaction', this.handleTransaction);
|
|
1173
|
+
},
|
|
1174
|
+
removeSelectionListeners: function removeSelectionListeners() {
|
|
1175
|
+
if (!this.editor) return;
|
|
1176
|
+
this.editor.off('selectionUpdate', this.handleSelectionUpdate);
|
|
1177
|
+
this.editor.off('transaction', this.handleTransaction);
|
|
1178
|
+
},
|
|
1179
|
+
handleSelectionUpdate: function handleSelectionUpdate() {
|
|
1180
|
+
this.updateMenuVisibility();
|
|
1181
|
+
},
|
|
1182
|
+
handleTransaction: function handleTransaction() {
|
|
1183
|
+
this.updateMenuVisibility();
|
|
1184
|
+
},
|
|
1185
|
+
updateMenuVisibility: function updateMenuVisibility() {
|
|
1186
|
+
var _this = this;
|
|
1187
|
+
if (this.hideTimeout) {
|
|
1188
|
+
clearTimeout(this.hideTimeout);
|
|
1189
|
+
this.hideTimeout = null;
|
|
1190
|
+
}
|
|
1191
|
+
if (this.isLinkActive && this.editor.view.hasFocus()) {
|
|
1192
|
+
this.showMenu = true;
|
|
1193
|
+
this.positionMenu();
|
|
1194
|
+
} else {
|
|
1195
|
+
// Delay hiding to prevent flicker when moving between link elements
|
|
1196
|
+
this.hideTimeout = setTimeout(function () {
|
|
1197
|
+
_this.showMenu = false;
|
|
1198
|
+
}, 100);
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
positionMenu: function positionMenu() {
|
|
1202
|
+
if (!this.editor || !this.editor.view) return;
|
|
1203
|
+
var view = this.editor.view;
|
|
1204
|
+
var _view$state$selection = view.state.selection,
|
|
1205
|
+
from = _view$state$selection.from,
|
|
1206
|
+
to = _view$state$selection.to;
|
|
1207
|
+
|
|
1208
|
+
// Get the DOM coordinates of the selection
|
|
1209
|
+
var start = view.coordsAtPos(from);
|
|
1210
|
+
var end = view.coordsAtPos(to);
|
|
1211
|
+
|
|
1212
|
+
// Position menu above the selection
|
|
1213
|
+
var left = (start.left + end.left) / 2;
|
|
1214
|
+
var top = start.top - 10; // 10px above the selection
|
|
1215
|
+
|
|
1216
|
+
this.menuStyle = {
|
|
1217
|
+
position: 'fixed',
|
|
1218
|
+
top: "".concat(top + 40, "px"),
|
|
1219
|
+
left: "".concat(left, "px"),
|
|
1220
|
+
transform: 'translateX(-50%)',
|
|
1221
|
+
zIndex: 1000
|
|
1222
|
+
};
|
|
1223
|
+
},
|
|
1224
|
+
editLink: function editLink() {
|
|
1225
|
+
// Select all the link text before opening modal
|
|
1226
|
+
if (this.editor) {
|
|
1227
|
+
this.editor.chain().focus().extendMarkRange('link').run();
|
|
1228
|
+
}
|
|
1229
|
+
this.$emit('edit-link');
|
|
1230
|
+
},
|
|
1231
|
+
openInNewTab: function openInNewTab() {
|
|
1232
|
+
var url = this.currentLinkUrl;
|
|
1233
|
+
if (url) {
|
|
1234
|
+
window.open(url, '_blank', 'noopener,noreferrer');
|
|
1235
|
+
this.showFeedback('Link opened in new tab');
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
copyLink: function copyLink() {
|
|
1239
|
+
var _this2 = this;
|
|
1240
|
+
return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
1241
|
+
var url, textArea, _t;
|
|
1242
|
+
return _regenerator().w(function (_context) {
|
|
1243
|
+
while (1) switch (_context.p = _context.n) {
|
|
1244
|
+
case 0:
|
|
1245
|
+
url = _this2.currentLinkUrl;
|
|
1246
|
+
if (url) {
|
|
1247
|
+
_context.n = 1;
|
|
1248
|
+
break;
|
|
1249
|
+
}
|
|
1250
|
+
return _context.a(2);
|
|
1251
|
+
case 1:
|
|
1252
|
+
_context.p = 1;
|
|
1253
|
+
if (!(navigator.clipboard && window.isSecureContext)) {
|
|
1254
|
+
_context.n = 3;
|
|
1255
|
+
break;
|
|
1256
|
+
}
|
|
1257
|
+
_context.n = 2;
|
|
1258
|
+
return navigator.clipboard.writeText(url);
|
|
1259
|
+
case 2:
|
|
1260
|
+
_context.n = 4;
|
|
1261
|
+
break;
|
|
1262
|
+
case 3:
|
|
1263
|
+
// Fallback for older browsers
|
|
1264
|
+
textArea = document.createElement('textarea');
|
|
1265
|
+
textArea.value = url;
|
|
1266
|
+
textArea.style.position = 'fixed';
|
|
1267
|
+
textArea.style.left = '-999999px';
|
|
1268
|
+
textArea.style.top = '-999999px';
|
|
1269
|
+
document.body.appendChild(textArea);
|
|
1270
|
+
textArea.focus();
|
|
1271
|
+
textArea.select();
|
|
1272
|
+
document.execCommand('copy');
|
|
1273
|
+
textArea.remove();
|
|
1274
|
+
case 4:
|
|
1275
|
+
_this2.showFeedback('Link copied to clipboard!');
|
|
1276
|
+
_context.n = 6;
|
|
1277
|
+
break;
|
|
1278
|
+
case 5:
|
|
1279
|
+
_context.p = 5;
|
|
1280
|
+
_t = _context.v;
|
|
1281
|
+
console.error('Failed to copy link:', _t);
|
|
1282
|
+
_this2.showFeedback('Failed to copy link', 'error');
|
|
1283
|
+
case 6:
|
|
1284
|
+
return _context.a(2);
|
|
1285
|
+
}
|
|
1286
|
+
}, _callee, null, [[1, 5]]);
|
|
1287
|
+
}))();
|
|
1288
|
+
},
|
|
1289
|
+
removeLink: function removeLink() {
|
|
1290
|
+
this.editor.chain().focus().extendMarkRange('link').unsetLink().run();
|
|
1291
|
+
this.showFeedback('Link removed');
|
|
1292
|
+
this.showMenu = false;
|
|
1293
|
+
},
|
|
1294
|
+
ensureProtocol: function ensureProtocol(url) {
|
|
1295
|
+
if (url.match(/^https?:\/\//)) {
|
|
1296
|
+
return url;
|
|
1297
|
+
}
|
|
1298
|
+
if (url.match(/^mailto:/)) {
|
|
1299
|
+
return url;
|
|
1300
|
+
}
|
|
1301
|
+
if (url.match(/^tel:/)) {
|
|
1302
|
+
return url;
|
|
1303
|
+
}
|
|
1304
|
+
// Default to https for web URLs
|
|
1305
|
+
return "https://".concat(url);
|
|
1306
|
+
},
|
|
1307
|
+
showFeedback: function showFeedback(message) {
|
|
1308
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'success';
|
|
1309
|
+
// Create a temporary feedback element
|
|
1310
|
+
var feedback = document.createElement('div');
|
|
1311
|
+
feedback.textContent = message;
|
|
1312
|
+
feedback.className = "link-feedback link-feedback-".concat(type);
|
|
1313
|
+
feedback.style.cssText = "\n position: fixed;\n top: ".concat(parseInt(this.menuStyle.top) - 40, "px;\n left: ").concat(this.menuStyle.left, ";\n transform: translateX(-50%);\n background: ").concat(type === 'error' ? '#ef4444' : '#000', ";\n color: white;\n padding: 6px 12px;\n border-radius: 4px;\n font-size: 12px;\n font-weight: 500;\n z-index: 1001;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.2s ease;\n ");
|
|
1314
|
+
document.body.appendChild(feedback);
|
|
1315
|
+
|
|
1316
|
+
// Animate in
|
|
1317
|
+
requestAnimationFrame(function () {
|
|
1318
|
+
feedback.style.opacity = '1';
|
|
1319
|
+
});
|
|
1320
|
+
|
|
1321
|
+
// Remove after delay
|
|
1322
|
+
setTimeout(function () {
|
|
1323
|
+
feedback.style.opacity = '0';
|
|
1324
|
+
setTimeout(function () {
|
|
1325
|
+
if (feedback.parentNode) {
|
|
1326
|
+
feedback.parentNode.removeChild(feedback);
|
|
1327
|
+
}
|
|
1328
|
+
}, 200);
|
|
1329
|
+
}, 2000);
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
});
|
|
1333
|
+
// CONCATENATED MODULE: ./src/components/Menus/LinkBubbleMenu.vue?vue&type=script&lang=js
|
|
1334
|
+
/* harmony default export */ var Menus_LinkBubbleMenuvue_type_script_lang_js = (LinkBubbleMenuvue_type_script_lang_js);
|
|
1335
|
+
// EXTERNAL MODULE: ./src/components/Menus/LinkBubbleMenu.vue?vue&type=style&index=0&id=b9dcc6ea&prod&scoped=true&lang=css
|
|
1336
|
+
var LinkBubbleMenuvue_type_style_index_0_id_b9dcc6ea_prod_scoped_true_lang_css = __webpack_require__("532a");
|
|
1337
|
+
|
|
1338
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1339
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
1340
|
+
|
|
1341
|
+
// CONCATENATED MODULE: ./src/components/Menus/LinkBubbleMenu.vue
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
/* normalize component */
|
|
1349
|
+
|
|
1350
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
1351
|
+
Menus_LinkBubbleMenuvue_type_script_lang_js,
|
|
1352
|
+
render,
|
|
1353
|
+
staticRenderFns,
|
|
1354
|
+
false,
|
|
1355
|
+
null,
|
|
1356
|
+
"b9dcc6ea",
|
|
1357
|
+
null
|
|
1358
|
+
|
|
1359
|
+
)
|
|
1360
|
+
|
|
1361
|
+
/* harmony default export */ var LinkBubbleMenu = __webpack_exports__["a"] = (component.exports);
|
|
1362
|
+
|
|
1363
|
+
/***/ }),
|
|
1364
|
+
|
|
1365
|
+
/***/ "2196":
|
|
1366
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1367
|
+
|
|
1368
|
+
"use strict";
|
|
1369
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TableBubbleMenu_vue_vue_type_style_index_0_id_12a75bc7_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0bfc");
|
|
1370
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TableBubbleMenu_vue_vue_type_style_index_0_id_12a75bc7_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TableBubbleMenu_vue_vue_type_style_index_0_id_12a75bc7_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
940
1371
|
/* unused harmony reexport * */
|
|
941
1372
|
|
|
942
1373
|
|
|
@@ -954,12 +1385,12 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
954
1385
|
|
|
955
1386
|
"use strict";
|
|
956
1387
|
|
|
957
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Modals/VideoModal.vue?vue&type=template&id=
|
|
958
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('div',{staticClass:"bbl-upload-modal-overlay",on:{"click":_vm.handleOverlayClick}},[_c('div',{staticClass:"bbl-upload-modal",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"bbl-modal-header"},[_c('h3',[_vm._v("Insert Video")]),_c('button',{staticClass:"close-btn",on:{"click":_vm.close}},[_vm._v("×")])]),_c('div',{staticClass:"bbl-modal-body"},[(_vm.activeTab === 'url')?_c('div',{staticClass:"bbl-tab-content"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.videoUrl),expression:"videoUrl"}],staticClass:"url-input",attrs:{"type":"url","placeholder":"https://youtube.com/watch?v=... or video file URL"},domProps:{"value":(_vm.videoUrl)},on:{"input":function($event){if($event.target.composing){ return; }_vm.videoUrl=$event.target.value}}}),_c('div',{staticClass:"url-help"},[_vm._v("Supports: YouTube, Vimeo, or direct video links (MP4, WebM)")])]):_vm._e(),(_vm.activeTab === 'upload')?_c('div',{staticClass:"bbl-tab-content"},[(!_vm.previewUrl)?_c('div',{staticClass:"drop-zone",class:{ 'drag-over': _vm.isDragOver },on:{"click":function($event){return _vm.$refs.fileInput.click()},"dragover":function($event){$event.preventDefault();_vm.isDragOver = true},"dragleave":function($event){_vm.isDragOver = false},"drop":function($event){$event.preventDefault();return _vm.handleDrop.apply(null, arguments)}}},[_c('div',{staticClass:"drop-zone-icon"},[_vm._v("🎥")]),_c('div',{staticClass:"drop-zone-title"},[_vm._v("Drop video here or click to browse")]),_c('div',{staticClass:"drop-zone-subtitle"},[_vm._v("Supports: MP4, WebM, MOV (max "+_vm._s(Math.round(_vm.maxFileSize / (1024 * 1024)))+"MB)")]),_c('input',{ref:"fileInput",staticStyle:{"display":"none"},attrs:{"type":"file","accept":"video/*"},on:{"change":_vm.handleFileSelect}})]):_c('div',{staticClass:"preview-container"},[_c('video',{staticClass:"preview-video",attrs:{"src":_vm.previewUrl,"controls":""}}),_c('div',{staticClass:"preview-info"},[_c('div',{staticClass:"preview-filename"},[_vm._v(_vm._s(_vm.selectedFile && _vm.selectedFile.name))]),_c('div',{staticClass:"preview-size"},[_vm._v(_vm._s(_vm.formatFileSize(_vm.selectedFile && _vm.selectedFile.size)))])]),(!_vm.isUploading && !_vm.uploadError && _vm.uploadedUrl)?_c('div',{staticClass:"upload-success"},[_vm.
|
|
959
|
-
var staticRenderFns = [
|
|
1388
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Modals/VideoModal.vue?vue&type=template&id=25f2dd7d&scoped=true
|
|
1389
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"modal","appear":""}},[(_vm.visible)?_c('div',{staticClass:"bbl-upload-modal-overlay",on:{"click":_vm.handleOverlayClick}},[_c('transition',{attrs:{"name":"modal-content","appear":""}},[_c('div',{staticClass:"bbl-upload-modal",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"bbl-modal-header"},[_c('h3',[_vm._v("Insert Video")]),_c('button',{staticClass:"close-btn",on:{"click":_vm.close}},[_vm._v("×")])]),_c('div',{staticClass:"bbl-modal-body"},[(_vm.activeTab === 'url')?_c('div',{staticClass:"bbl-tab-content"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.videoUrl),expression:"videoUrl"}],staticClass:"url-input",attrs:{"type":"url","placeholder":"https://youtube.com/watch?v=... or video file URL"},domProps:{"value":(_vm.videoUrl)},on:{"input":function($event){if($event.target.composing){ return; }_vm.videoUrl=$event.target.value}}}),_c('div',{staticClass:"url-help"},[_vm._v("Supports: YouTube, Vimeo, or direct video links (MP4, WebM)")])]):_vm._e(),(_vm.activeTab === 'upload')?_c('div',{staticClass:"bbl-tab-content"},[(!_vm.previewUrl)?_c('div',{staticClass:"drop-zone",class:{ 'drag-over': _vm.isDragOver },on:{"click":function($event){return _vm.$refs.fileInput.click()},"dragover":function($event){$event.preventDefault();_vm.isDragOver = true},"dragleave":function($event){_vm.isDragOver = false},"drop":function($event){$event.preventDefault();return _vm.handleDrop.apply(null, arguments)}}},[_c('div',{staticClass:"drop-zone-icon"},[_vm._v("🎥")]),_c('div',{staticClass:"drop-zone-title"},[_vm._v("Drop video here or click to browse")]),_c('div',{staticClass:"drop-zone-subtitle"},[_vm._v("Supports: MP4, WebM, MOV (max "+_vm._s(Math.round(_vm.maxFileSize / (1024 * 1024)))+"MB)")]),_c('input',{ref:"fileInput",staticStyle:{"display":"none"},attrs:{"type":"file","accept":"video/*"},on:{"change":_vm.handleFileSelect}})]):_c('div',{staticClass:"preview-container"},[_c('video',{staticClass:"preview-video",attrs:{"src":_vm.previewUrl,"controls":""}}),_c('div',{staticClass:"preview-info"},[_c('div',{staticClass:"preview-filename"},[_vm._v(_vm._s(_vm.selectedFile && _vm.selectedFile.name))]),_c('div',{staticClass:"preview-size"},[_vm._v(_vm._s(_vm.formatFileSize(_vm.selectedFile && _vm.selectedFile.size)))])]),(!_vm.isUploading && !_vm.uploadError && _vm.uploadedUrl)?_c('div',{staticClass:"upload-success"},[_c('div',{staticClass:"success-message"},[_c('span',{staticClass:"success-icon"},[_vm._v("✅")]),_vm._v(" Upload complete! Ready to insert. ")])]):_vm._e(),(_vm.isUploading)?_c('div',{staticClass:"upload-progress"},[_c('div',{staticClass:"progress-bar"},[_c('div',{staticClass:"progress-fill",style:({ width: _vm.uploadProgress + '%' })})]),_c('div',{staticClass:"progress-text"},[_vm._v("Uploading... "+_vm._s(_vm.uploadProgress)+"%")])]):_vm._e(),(_vm.uploadError)?_c('div',{staticClass:"upload-error"},[_c('div',{staticClass:"error-message"},[_c('span',{staticClass:"error-icon"},[_vm._v("⚠️")]),_vm._v(" "+_vm._s(_vm.uploadError)+" ")]),_c('div',{staticClass:"error-actions"},[_c('button',{staticClass:"retry-btn",on:{"click":function($event){return _vm.retryUpload(_vm.selectedFile)}}},[_vm._v("Try Again")]),_c('button',{staticClass:"local-btn",on:{"click":_vm.insertLocalVideo}},[_vm._v("Use Local File")])])]):_vm._e(),(!_vm.isUploading && !_vm.uploadError)?_c('button',{staticClass:"change-btn",on:{"click":_vm.changeFile}},[_vm._v("Change Video")]):_vm._e()])]):_vm._e()]),_c('div',{staticClass:"bbl-modal-footer"},[_c('button',{staticClass:"cancel-btn",on:{"click":_vm.close}},[_vm._v("Cancel")]),_c('button',{staticClass:"insert-btn",attrs:{"disabled":_vm.isUploading || (_vm.activeTab === 'upload' && !_vm.selectedFile) || (_vm.activeTab === 'url' && !_vm.videoUrl.trim())},on:{"click":_vm.insertVideo}},[(_vm.isUploading)?_c('span',[_vm._v("Uploading...")]):_c('span',[_vm._v("Insert Video")])])])])])],1):_vm._e()])}
|
|
1390
|
+
var staticRenderFns = []
|
|
960
1391
|
|
|
961
1392
|
|
|
962
|
-
// CONCATENATED MODULE: ./src/components/Modals/VideoModal.vue?vue&type=template&id=
|
|
1393
|
+
// CONCATENATED MODULE: ./src/components/Modals/VideoModal.vue?vue&type=template&id=25f2dd7d&scoped=true
|
|
963
1394
|
|
|
964
1395
|
// EXTERNAL MODULE: ./src/mixins/uploadMixin.js
|
|
965
1396
|
var uploadMixin = __webpack_require__("d86d");
|
|
@@ -1214,6 +1645,10 @@ function _asyncToGenerator(n) {
|
|
|
1214
1645
|
//
|
|
1215
1646
|
//
|
|
1216
1647
|
//
|
|
1648
|
+
//
|
|
1649
|
+
//
|
|
1650
|
+
//
|
|
1651
|
+
//
|
|
1217
1652
|
|
|
1218
1653
|
|
|
1219
1654
|
/* harmony default export */ var VideoModalvue_type_script_lang_js = ({
|
|
@@ -1407,8 +1842,8 @@ function _asyncToGenerator(n) {
|
|
|
1407
1842
|
});
|
|
1408
1843
|
// CONCATENATED MODULE: ./src/components/Modals/VideoModal.vue?vue&type=script&lang=js
|
|
1409
1844
|
/* harmony default export */ var Modals_VideoModalvue_type_script_lang_js = (VideoModalvue_type_script_lang_js);
|
|
1410
|
-
// EXTERNAL MODULE: ./src/components/Modals/VideoModal.vue?vue&type=style&index=0&id=
|
|
1411
|
-
var
|
|
1845
|
+
// EXTERNAL MODULE: ./src/components/Modals/VideoModal.vue?vue&type=style&index=0&id=25f2dd7d&prod&scoped=true&lang=css
|
|
1846
|
+
var VideoModalvue_type_style_index_0_id_25f2dd7d_prod_scoped_true_lang_css = __webpack_require__("d5e3");
|
|
1412
1847
|
|
|
1413
1848
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1414
1849
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -1428,7 +1863,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
1428
1863
|
staticRenderFns,
|
|
1429
1864
|
false,
|
|
1430
1865
|
null,
|
|
1431
|
-
"
|
|
1866
|
+
"25f2dd7d",
|
|
1432
1867
|
null
|
|
1433
1868
|
|
|
1434
1869
|
)
|
|
@@ -1446,6 +1881,17 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
1446
1881
|
/* unused harmony reexport * */
|
|
1447
1882
|
|
|
1448
1883
|
|
|
1884
|
+
/***/ }),
|
|
1885
|
+
|
|
1886
|
+
/***/ "2725":
|
|
1887
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1888
|
+
|
|
1889
|
+
"use strict";
|
|
1890
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageModal_vue_vue_type_style_index_0_id_a6f3fcaa_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5b6b");
|
|
1891
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageModal_vue_vue_type_style_index_0_id_a6f3fcaa_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageModal_vue_vue_type_style_index_0_id_a6f3fcaa_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
1892
|
+
/* unused harmony reexport * */
|
|
1893
|
+
|
|
1894
|
+
|
|
1449
1895
|
/***/ }),
|
|
1450
1896
|
|
|
1451
1897
|
/***/ "2877":
|
|
@@ -1558,15 +2004,15 @@ function normalizeComponent(
|
|
|
1558
2004
|
|
|
1559
2005
|
"use strict";
|
|
1560
2006
|
|
|
1561
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PremiumBblEditor.vue?vue&type=template&id=
|
|
2007
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PremiumBblEditor.vue?vue&type=template&id=aef207de&scoped=true
|
|
1562
2008
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"premium-editor-container",class:[
|
|
1563
2009
|
("theme-" + _vm.theme),
|
|
1564
2010
|
_vm.editorClass
|
|
1565
|
-
]},[(!_vm.isEditorReady && !_vm.editorError)?_c('div',{staticClass:"editor-loading"},[_c('div',{staticClass:"loading-spinner"}),_c('p',[_vm._v("Loading Premium Editor...")])]):_vm._e(),(_vm.editorError)?_c('div',{staticClass:"editor-error"},[_c('div',{staticClass:"error-icon"},[_vm._v("⚠️")]),_c('div',{staticClass:"error-content"},[_c('h3',[_vm._v("Editor Failed to Load")]),(_vm.missingDependencies.length > 0)?_c('div',{staticClass:"missing-deps"},[_vm._m(0),_c('ul',_vm._l((_vm.missingDependencies),function(dep){return _c('li',{key:dep},[_vm._v(_vm._s(dep))])}),0),_vm._m(1)]):_c('div',{staticClass:"generic-error"},[_c('p',[_vm._v(_vm._s(_vm.editorError))]),_c('p',[_vm._v("Please check the browser console for more details.")])]),_vm._m(2)])]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isEditorReady && !_vm.editorError),expression:"isEditorReady && !editorError"}],staticClass:"premium-editor-wrapper"},[(_vm.showToolbar)?_c('div',{staticClass:"premium-toolbar-container",class:_vm.toolbarClass},[(_vm.editor)?_c('ToolbarMain',{attrs:{"editor":_vm.editor,"config":_vm.toolbarConfig,"font-families":_vm.fontFamilies,"font-sizes":_vm.fontSizes,"line-heights":_vm.lineHeights,"allowed-headings":_vm.allowedHeadings,"source-code-mode":_vm.isSourceCodeMode},on:{"execute-command":_vm.executeCommand,"insert-link":_vm.openLinkModal,"insert-image":function($event){_vm.showImageModal = true},"insert-video":function($event){_vm.showVideoModal = true},"clear-formatting":_vm.clearFormatting,"toggle-source-code":_vm.toggleSourceCode}}):_c('div',{staticClass:"toolbar-loading"},[_c('div',{staticClass:"toolbar-loading-content"},[_c('div',{staticClass:"loading-spinner-small"}),_c('span',[_vm._v("Loading toolbar...")])])])],1):_vm._e(),_c('div',{staticClass:"premium-editor-content",class:_vm.contentClass,style:(_vm.contentStyles)},[_c('editor-content',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSourceCodeMode),expression:"!isSourceCodeMode"}],staticClass:"bbl-editor-area",style:(_vm.editorStyles),attrs:{"editor":_vm.editor}}),_c('textarea',{directives:[{name:"show",rawName:"v-show",value:(_vm.isSourceCodeMode),expression:"isSourceCodeMode"},{name:"model",rawName:"v-model",value:(_vm.sourceCode),expression:"sourceCode"}],staticClass:"source-code-editor",style:(_vm.editorStyles),attrs:{"spellcheck":_vm.spellcheck},domProps:{"value":(_vm.sourceCode)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.sourceCode=$event.target.value},_vm.updateFromSourceCode]}})],1),(_vm.showBubbleMenu && _vm.editor)?_c('EditorBubbleMenu',{attrs:{"editor":_vm.editor,"config":_vm.toolbarConfig},on:{"execute-command":_vm.executeCommand}}):_vm._e(),(_vm.showTableBubbleMenu && _vm.editor)?_c('TableBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e(),(_vm.showImageBubbleMenu && _vm.editor)?_c('ImageBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e(),(_vm.showVideoBubbleMenu && _vm.editor)?_c('VideoBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e()],1),_c('LinkModal',{attrs:{"visible":_vm.showLinkModal,"initial-text":_vm.linkModalData.text,"initial-url":_vm.linkModalData.url,"initial-target":_vm.linkModalData.target},on:{"close":function($event){_vm.showLinkModal = false},"insert":_vm.insertLink,"remove":_vm.removeLink}}),_c('ImageModal',{attrs:{"visible":_vm.showImageModal,"upload-handler":_vm.uploadHandler || _vm.defaultImageUpload,"upload-manager":_vm.uploadManager,"max-file-size":_vm.maxFileSize,"allowed-types":_vm.allowedImageTypes},on:{"close":function($event){_vm.showImageModal = false},"insert":_vm.insertImage}}),_c('VideoModal',{attrs:{"visible":_vm.showVideoModal,"upload-handler":_vm.uploadHandler || _vm.defaultVideoUpload,"upload-manager":_vm.uploadManager,"max-file-size":_vm.maxFileSize,"allowed-types":_vm.allowedVideoTypes},on:{"close":function($event){_vm.showVideoModal = false},"insert":_vm.insertVideo}})],1)}
|
|
2011
|
+
]},[(!_vm.isEditorReady && !_vm.editorError)?_c('div',{staticClass:"editor-loading"},[_c('div',{staticClass:"loading-spinner"}),_c('p',[_vm._v("Loading Premium Editor...")])]):_vm._e(),(_vm.editorError)?_c('div',{staticClass:"editor-error"},[_c('div',{staticClass:"error-icon"},[_vm._v("⚠️")]),_c('div',{staticClass:"error-content"},[_c('h3',[_vm._v("Editor Failed to Load")]),(_vm.missingDependencies.length > 0)?_c('div',{staticClass:"missing-deps"},[_vm._m(0),_c('ul',_vm._l((_vm.missingDependencies),function(dep){return _c('li',{key:dep},[_vm._v(_vm._s(dep))])}),0),_vm._m(1)]):_c('div',{staticClass:"generic-error"},[_c('p',[_vm._v(_vm._s(_vm.editorError))]),_c('p',[_vm._v("Please check the browser console for more details.")])]),_vm._m(2)])]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isEditorReady && !_vm.editorError),expression:"isEditorReady && !editorError"}],staticClass:"premium-editor-wrapper"},[(_vm.showToolbar)?_c('div',{staticClass:"premium-toolbar-container",class:_vm.toolbarClass},[(_vm.editor)?_c('ToolbarMain',{attrs:{"editor":_vm.editor,"config":_vm.toolbarConfig,"font-families":_vm.fontFamilies,"font-sizes":_vm.fontSizes,"line-heights":_vm.lineHeights,"allowed-headings":_vm.allowedHeadings,"source-code-mode":_vm.isSourceCodeMode},on:{"execute-command":_vm.executeCommand,"insert-link":_vm.openLinkModal,"insert-image":function($event){_vm.showImageModal = true},"insert-video":function($event){_vm.showVideoModal = true},"clear-formatting":_vm.clearFormatting,"toggle-source-code":_vm.toggleSourceCode}}):_c('div',{staticClass:"toolbar-loading"},[_c('div',{staticClass:"toolbar-loading-content"},[_c('div',{staticClass:"loading-spinner-small"}),_c('span',[_vm._v("Loading toolbar...")])])])],1):_vm._e(),_c('div',{staticClass:"premium-editor-content",class:_vm.contentClass,style:(_vm.contentStyles)},[_c('editor-content',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSourceCodeMode),expression:"!isSourceCodeMode"}],staticClass:"bbl-editor-area",style:(_vm.editorStyles),attrs:{"editor":_vm.editor}}),_c('textarea',{directives:[{name:"show",rawName:"v-show",value:(_vm.isSourceCodeMode),expression:"isSourceCodeMode"},{name:"model",rawName:"v-model",value:(_vm.sourceCode),expression:"sourceCode"}],staticClass:"source-code-editor",style:(_vm.editorStyles),attrs:{"spellcheck":_vm.spellcheck},domProps:{"value":(_vm.sourceCode)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.sourceCode=$event.target.value},_vm.updateFromSourceCode]}})],1),(_vm.showBubbleMenu && _vm.editor)?_c('EditorBubbleMenu',{attrs:{"editor":_vm.editor,"config":_vm.toolbarConfig},on:{"execute-command":_vm.executeCommand,"insert-link":_vm.openLinkModal}}):_vm._e(),(_vm.showTableBubbleMenu && _vm.editor)?_c('TableBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e(),(_vm.showImageBubbleMenu && _vm.editor)?_c('ImageBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e(),(_vm.showLinkBubbleMenu && _vm.editor)?_c('LinkBubbleMenu',{attrs:{"editor":_vm.editor},on:{"edit-link":_vm.openLinkModal}}):_vm._e(),(_vm.showVideoBubbleMenu && _vm.editor)?_c('VideoBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e()],1),_c('LinkModal',{attrs:{"visible":_vm.showLinkModal,"initial-text":_vm.linkModalData.text,"initial-url":_vm.linkModalData.url,"initial-target":_vm.linkModalData.target},on:{"close":function($event){_vm.showLinkModal = false},"insert":_vm.insertLink,"remove":_vm.removeLink}}),_c('ImageModal',{attrs:{"visible":_vm.showImageModal,"upload-handler":_vm.uploadHandler || _vm.defaultImageUpload,"upload-manager":_vm.uploadManager,"max-file-size":_vm.maxFileSize,"allowed-types":_vm.allowedImageTypes},on:{"close":function($event){_vm.showImageModal = false},"insert":_vm.insertImage}}),_c('VideoModal',{attrs:{"visible":_vm.showVideoModal,"upload-handler":_vm.uploadHandler || _vm.defaultVideoUpload,"upload-manager":_vm.uploadManager,"max-file-size":_vm.maxFileSize,"allowed-types":_vm.allowedVideoTypes},on:{"close":function($event){_vm.showVideoModal = false},"insert":_vm.insertVideo}})],1)}
|
|
1566
2012
|
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_c('strong',[_vm._v("Missing Dependencies:")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"install-command"},[_c('p',[_c('strong',[_vm._v("Quick Fix:")])]),_c('code',[_vm._v("npm install @vue/composition-api @tiptap/core @tiptap/vue-2 @tiptap/starter-kit @tiptap/extension-text-style @tiptap/extension-color @tiptap/extension-highlight @tiptap/extension-underline @tiptap/extension-text-align @tiptap/extension-link @tiptap/extension-font-family @tiptap/extension-code @tiptap/extension-code-block @tiptap/extension-table @tiptap/extension-table-row @tiptap/extension-table-cell @tiptap/extension-table-header @tiptap/extension-task-list @tiptap/extension-task-item @tiptap/extension-placeholder")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"help-links"},[_c('a',{attrs:{"href":"https://github.com/kazi-shahin/vue2-bbl-editor#quick-setup","target":"_blank"}},[_vm._v("📖 Setup Guide")]),_c('a',{attrs:{"href":"https://github.com/kazi-shahin/vue2-bbl-editor/blob/main/TROUBLESHOOTING.md","target":"_blank"}},[_vm._v("🔧 Troubleshooting")])])}]
|
|
1567
2013
|
|
|
1568
2014
|
|
|
1569
|
-
// CONCATENATED MODULE: ./src/components/PremiumBblEditor.vue?vue&type=template&id=
|
|
2015
|
+
// CONCATENATED MODULE: ./src/components/PremiumBblEditor.vue?vue&type=template&id=aef207de&scoped=true
|
|
1570
2016
|
|
|
1571
2017
|
// EXTERNAL MODULE: external "@tiptap/vue-2"
|
|
1572
2018
|
var vue_2_ = __webpack_require__("9637");
|
|
@@ -1586,6 +2032,9 @@ var TableBubbleMenu = __webpack_require__("521c");
|
|
|
1586
2032
|
// EXTERNAL MODULE: ./src/components/Menus/ImageBubbleMenu.vue + 4 modules
|
|
1587
2033
|
var ImageBubbleMenu = __webpack_require__("af21");
|
|
1588
2034
|
|
|
2035
|
+
// EXTERNAL MODULE: ./src/components/Menus/LinkBubbleMenu.vue + 4 modules
|
|
2036
|
+
var LinkBubbleMenu = __webpack_require__("215c");
|
|
2037
|
+
|
|
1589
2038
|
// EXTERNAL MODULE: ./src/components/Menus/VideoBubbleMenu.vue + 4 modules
|
|
1590
2039
|
var VideoBubbleMenu = __webpack_require__("85d2");
|
|
1591
2040
|
|
|
@@ -1762,6 +2211,14 @@ var tables = __webpack_require__("e6b9");
|
|
|
1762
2211
|
//
|
|
1763
2212
|
//
|
|
1764
2213
|
//
|
|
2214
|
+
//
|
|
2215
|
+
//
|
|
2216
|
+
//
|
|
2217
|
+
//
|
|
2218
|
+
//
|
|
2219
|
+
//
|
|
2220
|
+
//
|
|
2221
|
+
|
|
1765
2222
|
|
|
1766
2223
|
|
|
1767
2224
|
|
|
@@ -1786,6 +2243,7 @@ var tables = __webpack_require__("e6b9");
|
|
|
1786
2243
|
EditorBubbleMenu: BubbleMenu["a" /* default */],
|
|
1787
2244
|
TableBubbleMenu: TableBubbleMenu["a" /* default */],
|
|
1788
2245
|
ImageBubbleMenu: ImageBubbleMenu["a" /* default */],
|
|
2246
|
+
LinkBubbleMenu: LinkBubbleMenu["a" /* default */],
|
|
1789
2247
|
VideoBubbleMenu: VideoBubbleMenu["a" /* default */],
|
|
1790
2248
|
ImageModal: ImageModal["a" /* default */],
|
|
1791
2249
|
VideoModal: VideoModal["a" /* default */],
|
|
@@ -1845,6 +2303,10 @@ var tables = __webpack_require__("e6b9");
|
|
|
1845
2303
|
type: Boolean,
|
|
1846
2304
|
default: true
|
|
1847
2305
|
},
|
|
2306
|
+
showLinkBubbleMenu: {
|
|
2307
|
+
type: Boolean,
|
|
2308
|
+
default: true
|
|
2309
|
+
},
|
|
1848
2310
|
showVideoBubbleMenu: {
|
|
1849
2311
|
type: Boolean,
|
|
1850
2312
|
default: true
|
|
@@ -2590,8 +3052,8 @@ var tables = __webpack_require__("e6b9");
|
|
|
2590
3052
|
});
|
|
2591
3053
|
// CONCATENATED MODULE: ./src/components/PremiumBblEditor.vue?vue&type=script&lang=js
|
|
2592
3054
|
/* harmony default export */ var components_PremiumBblEditorvue_type_script_lang_js = (PremiumBblEditorvue_type_script_lang_js);
|
|
2593
|
-
// EXTERNAL MODULE: ./src/components/PremiumBblEditor.vue?vue&type=style&index=0&id=
|
|
2594
|
-
var
|
|
3055
|
+
// EXTERNAL MODULE: ./src/components/PremiumBblEditor.vue?vue&type=style&index=0&id=aef207de&prod&scoped=true&lang=css
|
|
3056
|
+
var PremiumBblEditorvue_type_style_index_0_id_aef207de_prod_scoped_true_lang_css = __webpack_require__("f17e");
|
|
2595
3057
|
|
|
2596
3058
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
2597
3059
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -2611,7 +3073,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
2611
3073
|
staticRenderFns,
|
|
2612
3074
|
false,
|
|
2613
3075
|
null,
|
|
2614
|
-
"
|
|
3076
|
+
"aef207de",
|
|
2615
3077
|
null
|
|
2616
3078
|
|
|
2617
3079
|
)
|
|
@@ -2631,14 +3093,10 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
2631
3093
|
|
|
2632
3094
|
/***/ }),
|
|
2633
3095
|
|
|
2634
|
-
/***/ "
|
|
2635
|
-
/***/ (function(module,
|
|
2636
|
-
|
|
2637
|
-
"use strict";
|
|
2638
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoModal_vue_vue_type_style_index_0_id_7d7d2578_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("014e");
|
|
2639
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoModal_vue_vue_type_style_index_0_id_7d7d2578_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoModal_vue_vue_type_style_index_0_id_7d7d2578_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
2640
|
-
/* unused harmony reexport * */
|
|
3096
|
+
/***/ "3a65":
|
|
3097
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2641
3098
|
|
|
3099
|
+
// extracted by mini-css-extract-plugin
|
|
2642
3100
|
|
|
2643
3101
|
/***/ }),
|
|
2644
3102
|
|
|
@@ -3061,17 +3519,6 @@ module.exports = require("@tiptap/extension-table-header");
|
|
|
3061
3519
|
/* unused harmony reexport * */
|
|
3062
3520
|
|
|
3063
3521
|
|
|
3064
|
-
/***/ }),
|
|
3065
|
-
|
|
3066
|
-
/***/ "4ddd":
|
|
3067
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3068
|
-
|
|
3069
|
-
"use strict";
|
|
3070
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditorOptionsAPI_vue_vue_type_style_index_0_id_cc6a3522_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("785c");
|
|
3071
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditorOptionsAPI_vue_vue_type_style_index_0_id_cc6a3522_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditorOptionsAPI_vue_vue_type_style_index_0_id_cc6a3522_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
3072
|
-
/* unused harmony reexport * */
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
3522
|
/***/ }),
|
|
3076
3523
|
|
|
3077
3524
|
/***/ "521c":
|
|
@@ -3079,12 +3526,12 @@ module.exports = require("@tiptap/extension-table-header");
|
|
|
3079
3526
|
|
|
3080
3527
|
"use strict";
|
|
3081
3528
|
|
|
3082
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Menus/TableBubbleMenu.vue?vue&type=template&id=
|
|
3083
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.editor)?_c('bubble-menu',{staticClass:"table-bubble-menu",attrs:{"editor":_vm.editor,"tippy-options":_vm.tippyOptions,"should-show":_vm.shouldShow}},[_c('div',{staticClass:"bubble-menu-content"},[_c('BubbleMenuDropdown',{attrs:{"items":_vm.rowItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c('RowIcon',{attrs:{"width":20,"height":20}})]},proxy:true}],null,false,1514853362)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('BubbleMenuDropdown',{attrs:{"items":_vm.columnItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c('ColumnIcon',{attrs:{"width":20,"height":20}})]},proxy:true}],null,false,2749318126)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('BubbleMenuDropdown',{attrs:{"items":_vm.cellItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c('CellIcon',{attrs:{"width":18,"height":18}})]},proxy:true}],null,false,1604387166)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('BubbleMenuDropdown',{attrs:{"items":_vm.alignmentItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c('AlignIcon',{attrs:{"width":18,"height":18}})]},proxy:true}],null,false,1132556629)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('div',{ref:"colorPicker",staticClass:"color-picker-wrapper"},[_c('button',{staticClass:"menu-btn",attrs:{"title":"Cell Background Color"},on:{"click":_vm.toggleColorPicker}},[_c('ColorPalette')],1),(_vm.showColorPicker)?_c('div',{staticClass:"color-picker-dropdown"},[_c('div',{staticClass:"color-section"},[_c('button',{staticClass:"color-action-button",attrs:{"type":"button"},on:{"click":function($event){return _vm.setCellBackground('')}}},[_c('span',{staticClass:"remove-icon"},[_vm._v("✕")]),_vm._v(" Clear Background ")])]),_c('div',{staticClass:"color-section"},[_c('div',{staticClass:"section-label"},[_vm._v("Background Colors")]),_c('div',{staticClass:"color-grid"},_vm._l((_vm.colorOptions),function(color){return _c('button',{key:color.value,staticClass:"color-option",style:({ backgroundColor: color.value }),attrs:{"title":color.name,"type":"button"},on:{"click":function($event){return _vm.setCellBackground(color.value)}}})}),0)]),_c('div',{staticClass:"color-section"},[_c('div',{staticClass:"section-label"},[_vm._v("Custom Color")]),_c('div',{staticClass:"custom-color-picker"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.customColor),expression:"customColor"}],staticClass:"color-input",attrs:{"type":"color"},domProps:{"value":(_vm.customColor)},on:{"change":_vm.applyCustomColor,"input":function($event){if($event.target.composing){ return; }_vm.customColor=$event.target.value}}}),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.customColor),expression:"customColor"}],staticClass:"color-text-input",attrs:{"type":"text","placeholder":"#ffffff","maxlength":"7"},domProps:{"value":(_vm.customColor)},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.applyCustomColor.apply(null, arguments)},"blur":_vm.validateCustomColor,"input":function($event){if($event.target.composing){ return; }_vm.customColor=$event.target.value}}})])])]):_vm._e()]),_c('div',{staticClass:"bbl-menu-divider"}),_c('button',{staticClass:"menu-btn delete-btn",attrs:{"title":"Delete Table"},on:{"click":_vm.deleteTable}},[_c('Delete')],1)],1)]):_vm._e()}
|
|
3529
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Menus/TableBubbleMenu.vue?vue&type=template&id=12a75bc7&scoped=true
|
|
3530
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.editor)?_c('bubble-menu',{staticClass:"table-bubble-menu",attrs:{"editor":_vm.editor,"tippy-options":_vm.tippyOptions,"should-show":_vm.shouldShow}},[_c('div',{staticClass:"bubble-menu-content"},[_c('BubbleMenuDropdown',{attrs:{"items":_vm.rowItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c('RowIcon',{attrs:{"width":20,"height":20}})]},proxy:true}],null,false,1514853362)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('BubbleMenuDropdown',{attrs:{"items":_vm.columnItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c('ColumnIcon',{attrs:{"width":20,"height":20}})]},proxy:true}],null,false,2749318126)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('BubbleMenuDropdown',{attrs:{"items":_vm.cellItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c('CellIcon',{attrs:{"width":18,"height":18}})]},proxy:true}],null,false,1604387166)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('BubbleMenuDropdown',{attrs:{"items":_vm.alignmentItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c('AlignIcon',{attrs:{"width":18,"height":18}})]},proxy:true}],null,false,1132556629)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('BubbleMenuDropdown',{attrs:{"items":_vm.verticalAlignmentItems,"direction":"top"},scopedSlots:_vm._u([{key:"trigger",fn:function(){return [_c(_vm.currentVerticalAlignmentIcon,{tag:"component",attrs:{"width":18,"height":18}})]},proxy:true}],null,false,1393754231)}),_c('div',{staticClass:"bbl-menu-divider"}),_c('div',{ref:"colorPicker",staticClass:"color-picker-wrapper"},[_c('button',{staticClass:"menu-btn",attrs:{"title":"Cell Background Color"},on:{"click":_vm.toggleColorPicker}},[_c('ColorPalette')],1),(_vm.showColorPicker)?_c('div',{staticClass:"color-picker-dropdown"},[_c('div',{staticClass:"color-section"},[_c('button',{staticClass:"color-action-button",attrs:{"type":"button"},on:{"click":function($event){return _vm.setCellBackground('')}}},[_c('span',{staticClass:"remove-icon"},[_vm._v("✕")]),_vm._v(" Clear Background ")])]),_c('div',{staticClass:"color-section"},[_c('div',{staticClass:"section-label"},[_vm._v("Background Colors")]),_c('div',{staticClass:"color-grid"},_vm._l((_vm.colorOptions),function(color){return _c('button',{key:color.value,staticClass:"color-option",style:({ backgroundColor: color.value }),attrs:{"title":color.name,"type":"button"},on:{"click":function($event){return _vm.setCellBackground(color.value)}}})}),0)]),_c('div',{staticClass:"color-section"},[_c('div',{staticClass:"section-label"},[_vm._v("Custom Color")]),_c('div',{staticClass:"custom-color-picker"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.customColor),expression:"customColor"}],staticClass:"color-input",attrs:{"type":"color"},domProps:{"value":(_vm.customColor)},on:{"change":_vm.applyCustomColor,"input":function($event){if($event.target.composing){ return; }_vm.customColor=$event.target.value}}}),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.customColor),expression:"customColor"}],staticClass:"color-text-input",attrs:{"type":"text","placeholder":"#ffffff","maxlength":"7"},domProps:{"value":(_vm.customColor)},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.applyCustomColor.apply(null, arguments)},"blur":_vm.validateCustomColor,"input":function($event){if($event.target.composing){ return; }_vm.customColor=$event.target.value}}})])])]):_vm._e()]),_c('div',{staticClass:"bbl-menu-divider"}),_c('button',{staticClass:"menu-btn delete-btn",attrs:{"title":"Delete Table"},on:{"click":_vm.deleteTable}},[_c('Delete')],1)],1)]):_vm._e()}
|
|
3084
3531
|
var staticRenderFns = []
|
|
3085
3532
|
|
|
3086
3533
|
|
|
3087
|
-
// CONCATENATED MODULE: ./src/components/Menus/TableBubbleMenu.vue?vue&type=template&id=
|
|
3534
|
+
// CONCATENATED MODULE: ./src/components/Menus/TableBubbleMenu.vue?vue&type=template&id=12a75bc7&scoped=true
|
|
3088
3535
|
|
|
3089
3536
|
// EXTERNAL MODULE: external "@tiptap/vue-2"
|
|
3090
3537
|
var vue_2_ = __webpack_require__("9637");
|
|
@@ -3092,7 +3539,7 @@ var vue_2_ = __webpack_require__("9637");
|
|
|
3092
3539
|
// EXTERNAL MODULE: ./src/components/Toolbar/BubbleMenuDropdown.vue + 4 modules
|
|
3093
3540
|
var BubbleMenuDropdown = __webpack_require__("690e");
|
|
3094
3541
|
|
|
3095
|
-
// EXTERNAL MODULE: ./src/components/svg/index.js +
|
|
3542
|
+
// EXTERNAL MODULE: ./src/components/svg/index.js + 207 modules
|
|
3096
3543
|
var svg = __webpack_require__("9f9d");
|
|
3097
3544
|
|
|
3098
3545
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/babel-loader/lib??ref--15!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Menus/TableBubbleMenu.vue?vue&type=script&lang=js
|
|
@@ -3265,6 +3712,15 @@ function _toPrimitive(t, r) {
|
|
|
3265
3712
|
//
|
|
3266
3713
|
//
|
|
3267
3714
|
//
|
|
3715
|
+
//
|
|
3716
|
+
//
|
|
3717
|
+
//
|
|
3718
|
+
//
|
|
3719
|
+
//
|
|
3720
|
+
//
|
|
3721
|
+
//
|
|
3722
|
+
//
|
|
3723
|
+
//
|
|
3268
3724
|
|
|
3269
3725
|
|
|
3270
3726
|
|
|
@@ -3274,12 +3730,15 @@ function _toPrimitive(t, r) {
|
|
|
3274
3730
|
components: {
|
|
3275
3731
|
BubbleMenu: vue_2_["BubbleMenu"],
|
|
3276
3732
|
BubbleMenuDropdown: BubbleMenuDropdown["a" /* default */],
|
|
3277
|
-
Delete: svg["
|
|
3278
|
-
ColorPalette: svg["
|
|
3279
|
-
RowIcon: svg["
|
|
3280
|
-
ColumnIcon: svg["
|
|
3281
|
-
CellIcon: svg["
|
|
3282
|
-
AlignIcon: svg["
|
|
3733
|
+
Delete: svg["v" /* Delete */],
|
|
3734
|
+
ColorPalette: svg["s" /* ColorPalette */],
|
|
3735
|
+
RowIcon: svg["N" /* RowIcon */],
|
|
3736
|
+
ColumnIcon: svg["t" /* ColumnIcon */],
|
|
3737
|
+
CellIcon: svg["n" /* CellIcon */],
|
|
3738
|
+
AlignIcon: svg["d" /* AlignIcon */],
|
|
3739
|
+
AlignTop: svg["f" /* AlignTop */],
|
|
3740
|
+
AlignMiddle: svg["e" /* AlignMiddle */],
|
|
3741
|
+
AlignBottom: svg["c" /* AlignBottom */]
|
|
3283
3742
|
},
|
|
3284
3743
|
props: {
|
|
3285
3744
|
editor: {
|
|
@@ -3439,31 +3898,31 @@ function _toPrimitive(t, r) {
|
|
|
3439
3898
|
}
|
|
3440
3899
|
}, {
|
|
3441
3900
|
label: 'Insert Row Below',
|
|
3442
|
-
icon: svg["
|
|
3901
|
+
icon: svg["h" /* BelowRow */],
|
|
3443
3902
|
action: function action() {
|
|
3444
3903
|
return _this2.editor.chain().focus().addRowAfter().run();
|
|
3445
3904
|
}
|
|
3446
3905
|
}, {
|
|
3447
3906
|
label: 'Move Row Up',
|
|
3448
|
-
icon: svg["
|
|
3907
|
+
icon: svg["F" /* MoveUp */],
|
|
3449
3908
|
action: function action() {
|
|
3450
3909
|
return _this2.moveRowUp();
|
|
3451
3910
|
}
|
|
3452
3911
|
}, {
|
|
3453
3912
|
label: 'Move Row Down',
|
|
3454
|
-
icon: svg["
|
|
3913
|
+
icon: svg["E" /* MoveDown */],
|
|
3455
3914
|
action: function action() {
|
|
3456
3915
|
return _this2.moveRowDown();
|
|
3457
3916
|
}
|
|
3458
3917
|
}, {
|
|
3459
3918
|
label: 'Duplicate Row',
|
|
3460
|
-
icon: svg["
|
|
3919
|
+
icon: svg["w" /* Duplicate */],
|
|
3461
3920
|
action: function action() {
|
|
3462
3921
|
return _this2.duplicateRow();
|
|
3463
3922
|
}
|
|
3464
3923
|
}, {
|
|
3465
3924
|
label: 'Delete Row',
|
|
3466
|
-
icon: svg["
|
|
3925
|
+
icon: svg["v" /* Delete */],
|
|
3467
3926
|
action: function action() {
|
|
3468
3927
|
return _this2.editor.chain().focus().deleteRow().run();
|
|
3469
3928
|
}
|
|
@@ -3479,7 +3938,7 @@ function _toPrimitive(t, r) {
|
|
|
3479
3938
|
}
|
|
3480
3939
|
}, {
|
|
3481
3940
|
label: 'Insert Column Right',
|
|
3482
|
-
icon: svg["
|
|
3941
|
+
icon: svg["g" /* BelowColumn */],
|
|
3483
3942
|
action: function action() {
|
|
3484
3943
|
return _this3.editor.chain().focus().addColumnAfter().run();
|
|
3485
3944
|
}
|
|
@@ -3501,7 +3960,7 @@ function _toPrimitive(t, r) {
|
|
|
3501
3960
|
// },
|
|
3502
3961
|
{
|
|
3503
3962
|
label: 'Delete Column',
|
|
3504
|
-
icon: svg["
|
|
3963
|
+
icon: svg["v" /* Delete */],
|
|
3505
3964
|
action: function action() {
|
|
3506
3965
|
return _this3.editor.chain().focus().deleteColumn().run();
|
|
3507
3966
|
}
|
|
@@ -3511,14 +3970,14 @@ function _toPrimitive(t, r) {
|
|
|
3511
3970
|
var _this4 = this;
|
|
3512
3971
|
return [{
|
|
3513
3972
|
label: 'Merge Cells',
|
|
3514
|
-
icon: svg["
|
|
3973
|
+
icon: svg["D" /* MergeCells */],
|
|
3515
3974
|
action: function action() {
|
|
3516
3975
|
return _this4.editor.chain().focus().mergeCells().run();
|
|
3517
3976
|
},
|
|
3518
3977
|
disabled: !this.editor.can().mergeCells()
|
|
3519
3978
|
}, {
|
|
3520
3979
|
label: 'Split Cell',
|
|
3521
|
-
icon: svg["
|
|
3980
|
+
icon: svg["R" /* SplitCell */],
|
|
3522
3981
|
action: function action() {
|
|
3523
3982
|
return _this4.editor.chain().focus().splitCell().run();
|
|
3524
3983
|
},
|
|
@@ -3529,29 +3988,66 @@ function _toPrimitive(t, r) {
|
|
|
3529
3988
|
var _this5 = this;
|
|
3530
3989
|
return [{
|
|
3531
3990
|
label: 'Align Left',
|
|
3532
|
-
icon: svg["
|
|
3991
|
+
icon: svg["B" /* LeftAlign */],
|
|
3533
3992
|
action: function action() {
|
|
3534
3993
|
return _this5.setCellAlignment('left');
|
|
3535
3994
|
}
|
|
3536
3995
|
}, {
|
|
3537
3996
|
label: 'Align Center',
|
|
3538
|
-
icon: svg["
|
|
3997
|
+
icon: svg["o" /* CenterAlign */],
|
|
3539
3998
|
action: function action() {
|
|
3540
3999
|
return _this5.setCellAlignment('center');
|
|
3541
4000
|
}
|
|
3542
4001
|
}, {
|
|
3543
4002
|
label: 'Align Right',
|
|
3544
|
-
icon: svg["
|
|
4003
|
+
icon: svg["M" /* RightAlign */],
|
|
3545
4004
|
action: function action() {
|
|
3546
4005
|
return _this5.setCellAlignment('right');
|
|
3547
4006
|
}
|
|
3548
4007
|
}, {
|
|
3549
4008
|
label: 'Justify',
|
|
3550
|
-
icon: svg["
|
|
4009
|
+
icon: svg["A" /* JustifyAlign */],
|
|
3551
4010
|
action: function action() {
|
|
3552
4011
|
return _this5.setCellAlignment('justify');
|
|
3553
4012
|
}
|
|
3554
4013
|
}];
|
|
4014
|
+
},
|
|
4015
|
+
verticalAlignmentItems: function verticalAlignmentItems() {
|
|
4016
|
+
var _this6 = this;
|
|
4017
|
+
var currentAlignment = this.getCurrentVerticalAlignment();
|
|
4018
|
+
return [{
|
|
4019
|
+
label: 'Align Top',
|
|
4020
|
+
icon: svg["f" /* AlignTop */],
|
|
4021
|
+
action: function action() {
|
|
4022
|
+
return _this6.setCellVerticalAlignment('top');
|
|
4023
|
+
},
|
|
4024
|
+
active: currentAlignment === 'top'
|
|
4025
|
+
}, {
|
|
4026
|
+
label: 'Align Middle',
|
|
4027
|
+
icon: svg["e" /* AlignMiddle */],
|
|
4028
|
+
action: function action() {
|
|
4029
|
+
return _this6.setCellVerticalAlignment('middle');
|
|
4030
|
+
},
|
|
4031
|
+
active: currentAlignment === 'middle'
|
|
4032
|
+
}, {
|
|
4033
|
+
label: 'Align Bottom',
|
|
4034
|
+
icon: svg["c" /* AlignBottom */],
|
|
4035
|
+
action: function action() {
|
|
4036
|
+
return _this6.setCellVerticalAlignment('bottom');
|
|
4037
|
+
},
|
|
4038
|
+
active: currentAlignment === 'bottom'
|
|
4039
|
+
}];
|
|
4040
|
+
},
|
|
4041
|
+
currentVerticalAlignmentIcon: function currentVerticalAlignmentIcon() {
|
|
4042
|
+
var alignment = this.getCurrentVerticalAlignment();
|
|
4043
|
+
switch (alignment) {
|
|
4044
|
+
case 'top':
|
|
4045
|
+
return svg["f" /* AlignTop */];
|
|
4046
|
+
case 'bottom':
|
|
4047
|
+
return svg["c" /* AlignBottom */];
|
|
4048
|
+
default:
|
|
4049
|
+
return svg["e" /* AlignMiddle */];
|
|
4050
|
+
}
|
|
3555
4051
|
}
|
|
3556
4052
|
},
|
|
3557
4053
|
methods: {
|
|
@@ -3619,7 +4115,36 @@ function _toPrimitive(t, r) {
|
|
|
3619
4115
|
}
|
|
3620
4116
|
}
|
|
3621
4117
|
},
|
|
3622
|
-
|
|
4118
|
+
getCurrentVerticalAlignment: function getCurrentVerticalAlignment() {
|
|
4119
|
+
if (!this.editor) return 'middle';
|
|
4120
|
+
var state = this.editor.state;
|
|
4121
|
+
var selection = state.selection;
|
|
4122
|
+
var $anchor = selection.$anchor;
|
|
4123
|
+
var cellDepth = null;
|
|
4124
|
+
for (var d = $anchor.depth; d > 0; d--) {
|
|
4125
|
+
var node = $anchor.node(d);
|
|
4126
|
+
if (node.type.name === 'tableCell' || node.type.name === 'tableHeader') {
|
|
4127
|
+
cellDepth = d;
|
|
4128
|
+
break;
|
|
4129
|
+
}
|
|
4130
|
+
}
|
|
4131
|
+
if (cellDepth !== null) {
|
|
4132
|
+
var cellPos = $anchor.before(cellDepth);
|
|
4133
|
+
var cell = state.doc.nodeAt(cellPos);
|
|
4134
|
+
if (cell && cell.attrs && cell.attrs.style) {
|
|
4135
|
+
var style = cell.attrs.style;
|
|
4136
|
+
var verticalAlignMatch = style.match(/vertical-align:\s*([^;]+)/);
|
|
4137
|
+
if (verticalAlignMatch) {
|
|
4138
|
+
var alignment = verticalAlignMatch[1].trim();
|
|
4139
|
+
if (['top', 'middle', 'bottom'].includes(alignment)) {
|
|
4140
|
+
return alignment;
|
|
4141
|
+
}
|
|
4142
|
+
}
|
|
4143
|
+
}
|
|
4144
|
+
}
|
|
4145
|
+
return 'middle'; // Default to middle
|
|
4146
|
+
},
|
|
4147
|
+
setCellVerticalAlignment: function setCellVerticalAlignment(alignment) {
|
|
3623
4148
|
if (!this.editor) return;
|
|
3624
4149
|
var _this$editor2 = this.editor,
|
|
3625
4150
|
state = _this$editor2.state,
|
|
@@ -3634,6 +4159,40 @@ function _toPrimitive(t, r) {
|
|
|
3634
4159
|
break;
|
|
3635
4160
|
}
|
|
3636
4161
|
}
|
|
4162
|
+
if (cellDepth !== null) {
|
|
4163
|
+
var cellPos = $anchor.before(cellDepth);
|
|
4164
|
+
var cell = state.doc.nodeAt(cellPos);
|
|
4165
|
+
if (cell) {
|
|
4166
|
+
var tr = state.tr;
|
|
4167
|
+
var existingAttrs = cell.attrs || {};
|
|
4168
|
+
var existingStyle = existingAttrs.style || '';
|
|
4169
|
+
var cleanedStyle = existingStyle.split(';').filter(function (s) {
|
|
4170
|
+
return s.trim() && !s.trim().startsWith('vertical-align');
|
|
4171
|
+
}).join(';');
|
|
4172
|
+
var newStyle = cleanedStyle ? "".concat(cleanedStyle, "; vertical-align: ").concat(alignment) : "vertical-align: ".concat(alignment);
|
|
4173
|
+
tr.setNodeMarkup(cellPos, null, _objectSpread(_objectSpread({}, existingAttrs), {}, {
|
|
4174
|
+
style: newStyle
|
|
4175
|
+
}));
|
|
4176
|
+
view.dispatch(tr);
|
|
4177
|
+
this.editor.commands.focus();
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
},
|
|
4181
|
+
setCellBackground: function setCellBackground(color) {
|
|
4182
|
+
if (!this.editor) return;
|
|
4183
|
+
var _this$editor3 = this.editor,
|
|
4184
|
+
state = _this$editor3.state,
|
|
4185
|
+
view = _this$editor3.view;
|
|
4186
|
+
var selection = state.selection;
|
|
4187
|
+
var $anchor = selection.$anchor;
|
|
4188
|
+
var cellDepth = null;
|
|
4189
|
+
for (var d = $anchor.depth; d > 0; d--) {
|
|
4190
|
+
var node = $anchor.node(d);
|
|
4191
|
+
if (node.type.name === 'tableCell' || node.type.name === 'tableHeader') {
|
|
4192
|
+
cellDepth = d;
|
|
4193
|
+
break;
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
3637
4196
|
if (cellDepth !== null) {
|
|
3638
4197
|
var cellPos = $anchor.before(cellDepth);
|
|
3639
4198
|
var cell = state.doc.nodeAt(cellPos);
|
|
@@ -3680,7 +4239,7 @@ function _toPrimitive(t, r) {
|
|
|
3680
4239
|
}
|
|
3681
4240
|
},
|
|
3682
4241
|
duplicateColumn: function duplicateColumn() {
|
|
3683
|
-
var
|
|
4242
|
+
var _this7 = this;
|
|
3684
4243
|
if (!this.editor) return;
|
|
3685
4244
|
var state = this.editor.state;
|
|
3686
4245
|
var selection = state.selection;
|
|
@@ -3812,7 +4371,7 @@ function _toPrimitive(t, r) {
|
|
|
3812
4371
|
} catch (error) {
|
|
3813
4372
|
console.error('Column duplication content restoration failed:', error);
|
|
3814
4373
|
}
|
|
3815
|
-
|
|
4374
|
+
_this7.editor.commands.focus();
|
|
3816
4375
|
}, 200);
|
|
3817
4376
|
}
|
|
3818
4377
|
},
|
|
@@ -3922,7 +4481,7 @@ function _toPrimitive(t, r) {
|
|
|
3922
4481
|
}
|
|
3923
4482
|
},
|
|
3924
4483
|
moveColumnLeft: function moveColumnLeft() {
|
|
3925
|
-
var
|
|
4484
|
+
var _this8 = this;
|
|
3926
4485
|
if (!this.editor) return;
|
|
3927
4486
|
|
|
3928
4487
|
// Simple approach: use built-in TipTap commands
|
|
@@ -3999,12 +4558,12 @@ function _toPrimitive(t, r) {
|
|
|
3999
4558
|
|
|
4000
4559
|
// Add column at previous position
|
|
4001
4560
|
setTimeout(function () {
|
|
4002
|
-
|
|
4561
|
+
_this8.editor.chain().focus().addColumnBefore().run();
|
|
4003
4562
|
|
|
4004
4563
|
// Populate with stored data
|
|
4005
4564
|
setTimeout(function () {
|
|
4006
4565
|
try {
|
|
4007
|
-
var newState =
|
|
4566
|
+
var newState = _this8.editor.state;
|
|
4008
4567
|
var tr = newState.tr;
|
|
4009
4568
|
var modified = false;
|
|
4010
4569
|
var newCellDepth = null;
|
|
@@ -4043,19 +4602,19 @@ function _toPrimitive(t, r) {
|
|
|
4043
4602
|
currentRowPos += row.nodeSize;
|
|
4044
4603
|
});
|
|
4045
4604
|
if (modified) {
|
|
4046
|
-
|
|
4605
|
+
_this8.editor.view.dispatch(tr);
|
|
4047
4606
|
}
|
|
4048
4607
|
}
|
|
4049
4608
|
} catch (error) {
|
|
4050
4609
|
console.warn('Column move failed:', error);
|
|
4051
4610
|
}
|
|
4052
|
-
|
|
4611
|
+
_this8.editor.commands.focus();
|
|
4053
4612
|
}, 50);
|
|
4054
4613
|
}, 50);
|
|
4055
4614
|
}
|
|
4056
4615
|
},
|
|
4057
4616
|
moveColumnRight: function moveColumnRight() {
|
|
4058
|
-
var
|
|
4617
|
+
var _this9 = this;
|
|
4059
4618
|
if (!this.editor) return;
|
|
4060
4619
|
|
|
4061
4620
|
// Simple approach: use built-in TipTap commands
|
|
@@ -4133,12 +4692,12 @@ function _toPrimitive(t, r) {
|
|
|
4133
4692
|
|
|
4134
4693
|
// Add column at next position
|
|
4135
4694
|
setTimeout(function () {
|
|
4136
|
-
|
|
4695
|
+
_this9.editor.chain().focus().addColumnAfter().run();
|
|
4137
4696
|
|
|
4138
4697
|
// Populate with stored data
|
|
4139
4698
|
setTimeout(function () {
|
|
4140
4699
|
try {
|
|
4141
|
-
var newState =
|
|
4700
|
+
var newState = _this9.editor.state;
|
|
4142
4701
|
var tr = newState.tr;
|
|
4143
4702
|
var modified = false;
|
|
4144
4703
|
var newCellDepth = null;
|
|
@@ -4177,13 +4736,13 @@ function _toPrimitive(t, r) {
|
|
|
4177
4736
|
currentRowPos += row.nodeSize;
|
|
4178
4737
|
});
|
|
4179
4738
|
if (modified) {
|
|
4180
|
-
|
|
4739
|
+
_this9.editor.view.dispatch(tr);
|
|
4181
4740
|
}
|
|
4182
4741
|
}
|
|
4183
4742
|
} catch (error) {
|
|
4184
4743
|
console.warn('Column move failed:', error);
|
|
4185
4744
|
}
|
|
4186
|
-
|
|
4745
|
+
_this9.editor.commands.focus();
|
|
4187
4746
|
}, 50);
|
|
4188
4747
|
}, 50);
|
|
4189
4748
|
}
|
|
@@ -4192,8 +4751,8 @@ function _toPrimitive(t, r) {
|
|
|
4192
4751
|
});
|
|
4193
4752
|
// CONCATENATED MODULE: ./src/components/Menus/TableBubbleMenu.vue?vue&type=script&lang=js
|
|
4194
4753
|
/* harmony default export */ var Menus_TableBubbleMenuvue_type_script_lang_js = (TableBubbleMenuvue_type_script_lang_js);
|
|
4195
|
-
// EXTERNAL MODULE: ./src/components/Menus/TableBubbleMenu.vue?vue&type=style&index=0&id=
|
|
4196
|
-
var
|
|
4754
|
+
// EXTERNAL MODULE: ./src/components/Menus/TableBubbleMenu.vue?vue&type=style&index=0&id=12a75bc7&prod&scoped=true&lang=css
|
|
4755
|
+
var TableBubbleMenuvue_type_style_index_0_id_12a75bc7_prod_scoped_true_lang_css = __webpack_require__("2196");
|
|
4197
4756
|
|
|
4198
4757
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
4199
4758
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -4213,7 +4772,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
4213
4772
|
staticRenderFns,
|
|
4214
4773
|
false,
|
|
4215
4774
|
null,
|
|
4216
|
-
"
|
|
4775
|
+
"12a75bc7",
|
|
4217
4776
|
null
|
|
4218
4777
|
|
|
4219
4778
|
)
|
|
@@ -4229,10 +4788,14 @@ module.exports = require("@tiptap/extension-table");
|
|
|
4229
4788
|
|
|
4230
4789
|
/***/ }),
|
|
4231
4790
|
|
|
4232
|
-
/***/ "
|
|
4233
|
-
/***/ (function(module,
|
|
4791
|
+
/***/ "532a":
|
|
4792
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4793
|
+
|
|
4794
|
+
"use strict";
|
|
4795
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkBubbleMenu_vue_vue_type_style_index_0_id_b9dcc6ea_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9c4e");
|
|
4796
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkBubbleMenu_vue_vue_type_style_index_0_id_b9dcc6ea_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkBubbleMenu_vue_vue_type_style_index_0_id_b9dcc6ea_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
4797
|
+
/* unused harmony reexport * */
|
|
4234
4798
|
|
|
4235
|
-
// extracted by mini-css-extract-plugin
|
|
4236
4799
|
|
|
4237
4800
|
/***/ }),
|
|
4238
4801
|
|
|
@@ -4268,7 +4831,14 @@ module.exports = require("@tiptap/extension-table");
|
|
|
4268
4831
|
/***/ "5924":
|
|
4269
4832
|
/***/ (function(module, exports) {
|
|
4270
4833
|
|
|
4271
|
-
module.exports = require("@tiptap/core");
|
|
4834
|
+
module.exports = require("@tiptap/core");
|
|
4835
|
+
|
|
4836
|
+
/***/ }),
|
|
4837
|
+
|
|
4838
|
+
/***/ "5b6b":
|
|
4839
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4840
|
+
|
|
4841
|
+
// extracted by mini-css-extract-plugin
|
|
4272
4842
|
|
|
4273
4843
|
/***/ }),
|
|
4274
4844
|
|
|
@@ -10307,24 +10877,17 @@ module.exports = require("@tiptap/extension-font-family");
|
|
|
10307
10877
|
|
|
10308
10878
|
/***/ }),
|
|
10309
10879
|
|
|
10310
|
-
/***/ "785c":
|
|
10311
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10312
|
-
|
|
10313
|
-
// extracted by mini-css-extract-plugin
|
|
10314
|
-
|
|
10315
|
-
/***/ }),
|
|
10316
|
-
|
|
10317
10880
|
/***/ "7a7e":
|
|
10318
10881
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10319
10882
|
|
|
10320
10883
|
"use strict";
|
|
10321
10884
|
|
|
10322
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Menus/BubbleMenu.vue?vue&type=template&id=
|
|
10885
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Menus/BubbleMenu.vue?vue&type=template&id=6bbf66c1&scoped=true
|
|
10323
10886
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.editor)?_c('bubble-menu',{staticClass:"bubble-menu",attrs:{"editor":_vm.editor,"tippy-options":{ duration: 100 }}},[_c('div',{staticClass:"bubble-menu-content"},[_c('button',{staticClass:"bubble-btn",class:{ active: _vm.isActive('bold') },attrs:{"title":"Bold"},on:{"click":function($event){return _vm.executeCommand('toggleBold')}}},[_c('strong',[_vm._v("B")])]),_c('button',{staticClass:"bubble-btn",class:{ active: _vm.isActive('italic') },attrs:{"title":"Italic"},on:{"click":function($event){return _vm.executeCommand('toggleItalic')}}},[_c('em',[_vm._v("I")])]),_c('button',{staticClass:"bubble-btn",class:{ active: _vm.isActive('underline') },attrs:{"title":"Underline"},on:{"click":function($event){return _vm.executeCommand('toggleUnderline')}}},[_c('u',[_vm._v("U")])]),_c('div',{staticClass:"bubble-separator"}),_c('button',{staticClass:"bubble-btn",class:{ active: _vm.isActive('link') },attrs:{"title":"Link"},on:{"click":_vm.setLink}},[_vm._v(" 🔗 ")]),_c('button',{staticClass:"bubble-btn",class:{ active: _vm.isActive('code') },attrs:{"title":"Code"},on:{"click":function($event){return _vm.executeCommand('toggleCode')}}},[_vm._v(" </> ")])])]):_vm._e()}
|
|
10324
10887
|
var staticRenderFns = []
|
|
10325
10888
|
|
|
10326
10889
|
|
|
10327
|
-
// CONCATENATED MODULE: ./src/components/Menus/BubbleMenu.vue?vue&type=template&id=
|
|
10890
|
+
// CONCATENATED MODULE: ./src/components/Menus/BubbleMenu.vue?vue&type=template&id=6bbf66c1&scoped=true
|
|
10328
10891
|
|
|
10329
10892
|
// EXTERNAL MODULE: external "@tiptap/vue-2"
|
|
10330
10893
|
var vue_2_ = __webpack_require__("9637");
|
|
@@ -10407,25 +10970,14 @@ var vue_2_ = __webpack_require__("9637");
|
|
|
10407
10970
|
return this.editor.isActive(name, attributes);
|
|
10408
10971
|
},
|
|
10409
10972
|
setLink: function setLink() {
|
|
10410
|
-
|
|
10411
|
-
var url = window.prompt('URL', previousUrl);
|
|
10412
|
-
if (url === null) {
|
|
10413
|
-
return;
|
|
10414
|
-
}
|
|
10415
|
-
if (url === '') {
|
|
10416
|
-
this.editor.chain().focus().extendMarkRange('link').unsetLink().run();
|
|
10417
|
-
return;
|
|
10418
|
-
}
|
|
10419
|
-
this.editor.chain().focus().extendMarkRange('link').setLink({
|
|
10420
|
-
href: url
|
|
10421
|
-
}).run();
|
|
10973
|
+
this.$emit('insert-link');
|
|
10422
10974
|
}
|
|
10423
10975
|
}
|
|
10424
10976
|
});
|
|
10425
10977
|
// CONCATENATED MODULE: ./src/components/Menus/BubbleMenu.vue?vue&type=script&lang=js
|
|
10426
10978
|
/* harmony default export */ var Menus_BubbleMenuvue_type_script_lang_js = (BubbleMenuvue_type_script_lang_js);
|
|
10427
|
-
// EXTERNAL MODULE: ./src/components/Menus/BubbleMenu.vue?vue&type=style&index=0&id=
|
|
10428
|
-
var
|
|
10979
|
+
// EXTERNAL MODULE: ./src/components/Menus/BubbleMenu.vue?vue&type=style&index=0&id=6bbf66c1&prod&scoped=true&lang=css
|
|
10980
|
+
var BubbleMenuvue_type_style_index_0_id_6bbf66c1_prod_scoped_true_lang_css = __webpack_require__("9a90");
|
|
10429
10981
|
|
|
10430
10982
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
10431
10983
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -10445,7 +10997,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
10445
10997
|
staticRenderFns,
|
|
10446
10998
|
false,
|
|
10447
10999
|
null,
|
|
10448
|
-
"
|
|
11000
|
+
"6bbf66c1",
|
|
10449
11001
|
null
|
|
10450
11002
|
|
|
10451
11003
|
)
|
|
@@ -20831,7 +21383,7 @@ var staticRenderFns = []
|
|
|
20831
21383
|
|
|
20832
21384
|
// CONCATENATED MODULE: ./src/components/Menus/VideoBubbleMenu.vue?vue&type=template&id=3c88fea6&scoped=true
|
|
20833
21385
|
|
|
20834
|
-
// EXTERNAL MODULE: ./src/components/svg/index.js +
|
|
21386
|
+
// EXTERNAL MODULE: ./src/components/svg/index.js + 207 modules
|
|
20835
21387
|
var svg = __webpack_require__("9f9d");
|
|
20836
21388
|
|
|
20837
21389
|
// EXTERNAL MODULE: ./src/components/Toolbar/BubbleMenuDropdown.vue + 4 modules
|
|
@@ -20910,18 +21462,18 @@ var BubbleMenuDropdown = __webpack_require__("690e");
|
|
|
20910
21462
|
/* harmony default export */ var VideoBubbleMenuvue_type_script_lang_js = ({
|
|
20911
21463
|
name: 'VideoBubbleMenu',
|
|
20912
21464
|
components: {
|
|
20913
|
-
LeftAlign: svg["
|
|
20914
|
-
CenterAlign: svg["
|
|
20915
|
-
RightAlign: svg["
|
|
20916
|
-
BlockDisplay: svg["
|
|
20917
|
-
InlineDisplay: svg["
|
|
20918
|
-
CaptionTop: svg["
|
|
20919
|
-
CaptionBottom: svg["
|
|
20920
|
-
NoCaption: svg["
|
|
20921
|
-
Delete: svg["
|
|
20922
|
-
SpacingSmall: svg["
|
|
20923
|
-
SpacingMedium: svg["
|
|
20924
|
-
SpacingLarge: svg["
|
|
21465
|
+
LeftAlign: svg["B" /* LeftAlign */],
|
|
21466
|
+
CenterAlign: svg["o" /* CenterAlign */],
|
|
21467
|
+
RightAlign: svg["M" /* RightAlign */],
|
|
21468
|
+
BlockDisplay: svg["i" /* BlockDisplay */],
|
|
21469
|
+
InlineDisplay: svg["z" /* InlineDisplay */],
|
|
21470
|
+
CaptionTop: svg["m" /* CaptionTop */],
|
|
21471
|
+
CaptionBottom: svg["l" /* CaptionBottom */],
|
|
21472
|
+
NoCaption: svg["I" /* NoCaption */],
|
|
21473
|
+
Delete: svg["v" /* Delete */],
|
|
21474
|
+
SpacingSmall: svg["Q" /* SpacingSmall */],
|
|
21475
|
+
SpacingMedium: svg["P" /* SpacingMedium */],
|
|
21476
|
+
SpacingLarge: svg["O" /* SpacingLarge */],
|
|
20925
21477
|
BubbleMenuDropdown: BubbleMenuDropdown["a" /* default */]
|
|
20926
21478
|
},
|
|
20927
21479
|
props: {
|
|
@@ -20964,35 +21516,35 @@ var BubbleMenuDropdown = __webpack_require__("690e");
|
|
|
20964
21516
|
},
|
|
20965
21517
|
currentAlignIcon: function currentAlignIcon() {
|
|
20966
21518
|
var align = this.editor.getAttributes('resizableVideo').align || 'left';
|
|
20967
|
-
return align === 'center' ? svg["
|
|
21519
|
+
return align === 'center' ? svg["o" /* CenterAlign */] : align === 'right' ? svg["M" /* RightAlign */] : svg["B" /* LeftAlign */];
|
|
20968
21520
|
},
|
|
20969
21521
|
currentSpacingIcon: function currentSpacingIcon() {
|
|
20970
21522
|
var spacing = this.editor.getAttributes('resizableVideo').spacing || 'medium';
|
|
20971
|
-
return spacing === 'small' ? svg["
|
|
21523
|
+
return spacing === 'small' ? svg["Q" /* SpacingSmall */] : spacing === 'large' ? svg["O" /* SpacingLarge */] : svg["P" /* SpacingMedium */];
|
|
20972
21524
|
},
|
|
20973
21525
|
currentCaptionIcon: function currentCaptionIcon() {
|
|
20974
21526
|
var position = this.editor.getAttributes('resizableVideo').captionPosition || 'none';
|
|
20975
|
-
return position === 'top' ? svg["
|
|
21527
|
+
return position === 'top' ? svg["m" /* CaptionTop */] : position === 'bottom' ? svg["l" /* CaptionBottom */] : svg["I" /* NoCaption */];
|
|
20976
21528
|
},
|
|
20977
21529
|
alignmentItems: function alignmentItems() {
|
|
20978
21530
|
var _this = this;
|
|
20979
21531
|
return [{
|
|
20980
21532
|
label: 'Align Left',
|
|
20981
|
-
icon: svg["
|
|
21533
|
+
icon: svg["B" /* LeftAlign */],
|
|
20982
21534
|
action: function action() {
|
|
20983
21535
|
return _this.setAlign('left');
|
|
20984
21536
|
},
|
|
20985
21537
|
active: this.isAlign('left')
|
|
20986
21538
|
}, {
|
|
20987
21539
|
label: 'Align Center',
|
|
20988
|
-
icon: svg["
|
|
21540
|
+
icon: svg["o" /* CenterAlign */],
|
|
20989
21541
|
action: function action() {
|
|
20990
21542
|
return _this.setAlign('center');
|
|
20991
21543
|
},
|
|
20992
21544
|
active: this.isAlign('center')
|
|
20993
21545
|
}, {
|
|
20994
21546
|
label: 'Align Right',
|
|
20995
|
-
icon: svg["
|
|
21547
|
+
icon: svg["M" /* RightAlign */],
|
|
20996
21548
|
action: function action() {
|
|
20997
21549
|
return _this.setAlign('right');
|
|
20998
21550
|
},
|
|
@@ -21003,21 +21555,21 @@ var BubbleMenuDropdown = __webpack_require__("690e");
|
|
|
21003
21555
|
var _this2 = this;
|
|
21004
21556
|
return [{
|
|
21005
21557
|
label: 'Small Spacing',
|
|
21006
|
-
icon: svg["
|
|
21558
|
+
icon: svg["Q" /* SpacingSmall */],
|
|
21007
21559
|
action: function action() {
|
|
21008
21560
|
return _this2.setSpacing('small');
|
|
21009
21561
|
},
|
|
21010
21562
|
active: this.isSpacing('small')
|
|
21011
21563
|
}, {
|
|
21012
21564
|
label: 'Medium Spacing',
|
|
21013
|
-
icon: svg["
|
|
21565
|
+
icon: svg["P" /* SpacingMedium */],
|
|
21014
21566
|
action: function action() {
|
|
21015
21567
|
return _this2.setSpacing('medium');
|
|
21016
21568
|
},
|
|
21017
21569
|
active: this.isSpacing('medium')
|
|
21018
21570
|
}, {
|
|
21019
21571
|
label: 'Large Spacing',
|
|
21020
|
-
icon: svg["
|
|
21572
|
+
icon: svg["O" /* SpacingLarge */],
|
|
21021
21573
|
action: function action() {
|
|
21022
21574
|
return _this2.setSpacing('large');
|
|
21023
21575
|
},
|
|
@@ -21028,21 +21580,21 @@ var BubbleMenuDropdown = __webpack_require__("690e");
|
|
|
21028
21580
|
var _this3 = this;
|
|
21029
21581
|
return [{
|
|
21030
21582
|
label: 'No Caption',
|
|
21031
|
-
icon: svg["
|
|
21583
|
+
icon: svg["I" /* NoCaption */],
|
|
21032
21584
|
action: function action() {
|
|
21033
21585
|
return _this3.setCaptionPosition('none');
|
|
21034
21586
|
},
|
|
21035
21587
|
active: this.isCaptionPosition('none')
|
|
21036
21588
|
}, {
|
|
21037
21589
|
label: 'Caption Top',
|
|
21038
|
-
icon: svg["
|
|
21590
|
+
icon: svg["m" /* CaptionTop */],
|
|
21039
21591
|
action: function action() {
|
|
21040
21592
|
return _this3.setCaptionPosition('top');
|
|
21041
21593
|
},
|
|
21042
21594
|
active: this.isCaptionPosition('top')
|
|
21043
21595
|
}, {
|
|
21044
21596
|
label: 'Caption Bottom',
|
|
21045
|
-
icon: svg["
|
|
21597
|
+
icon: svg["l" /* CaptionBottom */],
|
|
21046
21598
|
action: function action() {
|
|
21047
21599
|
return _this3.setCaptionPosition('bottom');
|
|
21048
21600
|
},
|
|
@@ -21410,17 +21962,17 @@ function _toPrimitive(t, r) {
|
|
|
21410
21962
|
|
|
21411
21963
|
/***/ }),
|
|
21412
21964
|
|
|
21413
|
-
/***/ "
|
|
21414
|
-
/***/ (function(module, exports
|
|
21965
|
+
/***/ "9590":
|
|
21966
|
+
/***/ (function(module, exports) {
|
|
21415
21967
|
|
|
21416
|
-
|
|
21968
|
+
module.exports = require("@tiptap/extension-color");
|
|
21417
21969
|
|
|
21418
21970
|
/***/ }),
|
|
21419
21971
|
|
|
21420
|
-
/***/ "
|
|
21421
|
-
/***/ (function(module, exports) {
|
|
21972
|
+
/***/ "9610":
|
|
21973
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21422
21974
|
|
|
21423
|
-
|
|
21975
|
+
// extracted by mini-css-extract-plugin
|
|
21424
21976
|
|
|
21425
21977
|
/***/ }),
|
|
21426
21978
|
|
|
@@ -21429,6 +21981,17 @@ module.exports = require("@tiptap/extension-color");
|
|
|
21429
21981
|
|
|
21430
21982
|
module.exports = require("@tiptap/vue-2");
|
|
21431
21983
|
|
|
21984
|
+
/***/ }),
|
|
21985
|
+
|
|
21986
|
+
/***/ "9a90":
|
|
21987
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21988
|
+
|
|
21989
|
+
"use strict";
|
|
21990
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BubbleMenu_vue_vue_type_style_index_0_id_6bbf66c1_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a0bc");
|
|
21991
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BubbleMenu_vue_vue_type_style_index_0_id_6bbf66c1_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BubbleMenu_vue_vue_type_style_index_0_id_6bbf66c1_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
21992
|
+
/* unused harmony reexport * */
|
|
21993
|
+
|
|
21994
|
+
|
|
21432
21995
|
/***/ }),
|
|
21433
21996
|
|
|
21434
21997
|
/***/ "9bba":
|
|
@@ -21438,6 +22001,13 @@ module.exports = require("@tiptap/extension-table-cell");
|
|
|
21438
22001
|
|
|
21439
22002
|
/***/ }),
|
|
21440
22003
|
|
|
22004
|
+
/***/ "9c4e":
|
|
22005
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
22006
|
+
|
|
22007
|
+
// extracted by mini-css-extract-plugin
|
|
22008
|
+
|
|
22009
|
+
/***/ }),
|
|
22010
|
+
|
|
21441
22011
|
/***/ "9d3b":
|
|
21442
22012
|
/***/ (function(module, exports) {
|
|
21443
22013
|
|
|
@@ -21451,45 +22021,52 @@ module.exports = require("@tiptap/extension-task-item");
|
|
|
21451
22021
|
"use strict";
|
|
21452
22022
|
|
|
21453
22023
|
// EXPORTS
|
|
21454
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21455
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21456
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21457
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21458
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21459
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21460
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21461
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21462
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21463
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21464
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21465
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21466
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21467
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21468
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21469
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21470
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21471
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21472
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21473
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21474
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21475
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21476
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
22024
|
+
__webpack_require__.d(__webpack_exports__, "B", function() { return /* reexport */ LeftAlign; });
|
|
22025
|
+
__webpack_require__.d(__webpack_exports__, "M", function() { return /* reexport */ RightAlign; });
|
|
22026
|
+
__webpack_require__.d(__webpack_exports__, "o", function() { return /* reexport */ CenterAlign; });
|
|
22027
|
+
__webpack_require__.d(__webpack_exports__, "A", function() { return /* reexport */ JustifyAlign; });
|
|
22028
|
+
__webpack_require__.d(__webpack_exports__, "i", function() { return /* reexport */ BlockDisplay; });
|
|
22029
|
+
__webpack_require__.d(__webpack_exports__, "z", function() { return /* reexport */ InlineDisplay; });
|
|
22030
|
+
__webpack_require__.d(__webpack_exports__, "m", function() { return /* reexport */ CaptionTop; });
|
|
22031
|
+
__webpack_require__.d(__webpack_exports__, "l", function() { return /* reexport */ CaptionBottom; });
|
|
22032
|
+
__webpack_require__.d(__webpack_exports__, "I", function() { return /* reexport */ NoCaption; });
|
|
22033
|
+
__webpack_require__.d(__webpack_exports__, "v", function() { return /* reexport */ Delete; });
|
|
22034
|
+
__webpack_require__.d(__webpack_exports__, "Q", function() { return /* reexport */ SpacingSmall; });
|
|
22035
|
+
__webpack_require__.d(__webpack_exports__, "P", function() { return /* reexport */ SpacingMedium; });
|
|
22036
|
+
__webpack_require__.d(__webpack_exports__, "O", function() { return /* reexport */ SpacingLarge; });
|
|
22037
|
+
__webpack_require__.d(__webpack_exports__, "J", function() { return /* reexport */ NumberList; });
|
|
22038
|
+
__webpack_require__.d(__webpack_exports__, "k", function() { return /* reexport */ BulletList; });
|
|
22039
|
+
__webpack_require__.d(__webpack_exports__, "j", function() { return /* reexport */ BoxList; });
|
|
22040
|
+
__webpack_require__.d(__webpack_exports__, "C", function() { return /* reexport */ Link; });
|
|
22041
|
+
__webpack_require__.d(__webpack_exports__, "x", function() { return /* reexport */ Edit; });
|
|
22042
|
+
__webpack_require__.d(__webpack_exports__, "S", function() { return /* reexport */ Unlink; });
|
|
22043
|
+
__webpack_require__.d(__webpack_exports__, "G", function() { return /* reexport */ NewTab; });
|
|
22044
|
+
__webpack_require__.d(__webpack_exports__, "u", function() { return /* reexport */ Copy; });
|
|
22045
|
+
__webpack_require__.d(__webpack_exports__, "y", function() { return /* reexport */ ImageSvg; });
|
|
22046
|
+
__webpack_require__.d(__webpack_exports__, "T", function() { return /* reexport */ Video; });
|
|
22047
|
+
__webpack_require__.d(__webpack_exports__, "K", function() { return /* reexport */ Previous; });
|
|
22048
|
+
__webpack_require__.d(__webpack_exports__, "H", function() { return /* reexport */ Next; });
|
|
22049
|
+
__webpack_require__.d(__webpack_exports__, "L", function() { return /* reexport */ Quote; });
|
|
22050
|
+
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ Code; });
|
|
21477
22051
|
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ AboveRow; });
|
|
21478
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
22052
|
+
__webpack_require__.d(__webpack_exports__, "h", function() { return /* reexport */ BelowRow; });
|
|
21479
22053
|
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ AboveColumn; });
|
|
21480
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21481
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21482
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21483
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21484
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21485
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21486
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21487
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21488
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21489
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21490
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21491
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
21492
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
22054
|
+
__webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ BelowColumn; });
|
|
22055
|
+
__webpack_require__.d(__webpack_exports__, "F", function() { return /* reexport */ MoveUp; });
|
|
22056
|
+
__webpack_require__.d(__webpack_exports__, "E", function() { return /* reexport */ MoveDown; });
|
|
22057
|
+
__webpack_require__.d(__webpack_exports__, "w", function() { return /* reexport */ Duplicate; });
|
|
22058
|
+
__webpack_require__.d(__webpack_exports__, "s", function() { return /* reexport */ ColorPalette; });
|
|
22059
|
+
__webpack_require__.d(__webpack_exports__, "p", function() { return /* reexport */ ClearFormatting; });
|
|
22060
|
+
__webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport */ CodeBlock; });
|
|
22061
|
+
__webpack_require__.d(__webpack_exports__, "N", function() { return /* reexport */ RowIcon; });
|
|
22062
|
+
__webpack_require__.d(__webpack_exports__, "t", function() { return /* reexport */ ColumnIcon; });
|
|
22063
|
+
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ CellIcon; });
|
|
22064
|
+
__webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ AlignIcon; });
|
|
22065
|
+
__webpack_require__.d(__webpack_exports__, "f", function() { return /* reexport */ AlignTop; });
|
|
22066
|
+
__webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ AlignMiddle; });
|
|
22067
|
+
__webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ AlignBottom; });
|
|
22068
|
+
__webpack_require__.d(__webpack_exports__, "D", function() { return /* reexport */ MergeCells; });
|
|
22069
|
+
__webpack_require__.d(__webpack_exports__, "R", function() { return /* reexport */ SplitCell; });
|
|
21493
22070
|
|
|
21494
22071
|
// UNUSED EXPORTS: Table, DeleteTable, MoveLeft, MoveRight
|
|
21495
22072
|
|
|
@@ -22157,6 +22734,110 @@ var Link_component = Object(componentNormalizer["a" /* default */])(
|
|
|
22157
22734
|
)
|
|
22158
22735
|
|
|
22159
22736
|
/* harmony default export */ var Link = (Link_component.exports);
|
|
22737
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/Edit.vue?vue&type=template&id=508824bc
|
|
22738
|
+
var Editvue_type_template_id_508824bc_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"fill":"none","viewBox":"0 0 16 16","role":"presentation"}},[_c('path',{attrs:{"fill":"currentcolor","fill-rule":"evenodd","d":"M11.586.854a2 2 0 0 1 2.828 0l.732.732a2 2 0 0 1 0 2.828L10.01 9.551a2 2 0 0 1-.864.51l-3.189.91a.75.75 0 0 1-.927-.927l.91-3.189a2 2 0 0 1 .51-.864zm1.768 1.06a.5.5 0 0 0-.708 0l-.585.586L13.5 3.94l.586-.586a.5.5 0 0 0 0-.708zM12.439 5 11 3.56 7.51 7.052a.5.5 0 0 0-.128.216l-.54 1.891 1.89-.54a.5.5 0 0 0 .217-.127zM3 2.501a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V10H15v3.001a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2h3v1.5z","clip-rule":"evenodd"}})])}
|
|
22739
|
+
var Editvue_type_template_id_508824bc_staticRenderFns = []
|
|
22740
|
+
|
|
22741
|
+
|
|
22742
|
+
// CONCATENATED MODULE: ./src/components/svg/Edit.vue?vue&type=template&id=508824bc
|
|
22743
|
+
|
|
22744
|
+
// CONCATENATED MODULE: ./src/components/svg/Edit.vue
|
|
22745
|
+
|
|
22746
|
+
var Edit_script = {}
|
|
22747
|
+
|
|
22748
|
+
|
|
22749
|
+
/* normalize component */
|
|
22750
|
+
|
|
22751
|
+
var Edit_component = Object(componentNormalizer["a" /* default */])(
|
|
22752
|
+
Edit_script,
|
|
22753
|
+
Editvue_type_template_id_508824bc_render,
|
|
22754
|
+
Editvue_type_template_id_508824bc_staticRenderFns,
|
|
22755
|
+
false,
|
|
22756
|
+
null,
|
|
22757
|
+
null,
|
|
22758
|
+
null
|
|
22759
|
+
|
|
22760
|
+
)
|
|
22761
|
+
|
|
22762
|
+
/* harmony default export */ var Edit = (Edit_component.exports);
|
|
22763
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/Unlink.vue?vue&type=template&id=243416c6
|
|
22764
|
+
var Unlinkvue_type_template_id_243416c6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"fill":"none","viewBox":"-4 -4 24 24","role":"presentation"}},[_c('path',{attrs:{"fill":"currentcolor","fill-rule":"evenodd","d":"M6 1v3H4.5V1zm2.22 1.22a3.932 3.932 0 1 1 5.56 5.56l-.75.75-1.06-1.06.75-.75a2.432 2.432 0 0 0-3.44-3.44l-.75.75-1.06-1.06zM1 4.5h3V6H1zm1.22 3.72.75-.75 1.06 1.06-.75.75a2.432 2.432 0 0 0 3.44 3.44l.75-.75 1.06 1.06-.75.75a3.932 3.932 0 1 1-5.56-5.56M15 11.5h-3V10h3zM10 15v-3h1.5v3z","clip-rule":"evenodd"}})])}
|
|
22765
|
+
var Unlinkvue_type_template_id_243416c6_staticRenderFns = []
|
|
22766
|
+
|
|
22767
|
+
|
|
22768
|
+
// CONCATENATED MODULE: ./src/components/svg/Unlink.vue?vue&type=template&id=243416c6
|
|
22769
|
+
|
|
22770
|
+
// CONCATENATED MODULE: ./src/components/svg/Unlink.vue
|
|
22771
|
+
|
|
22772
|
+
var Unlink_script = {}
|
|
22773
|
+
|
|
22774
|
+
|
|
22775
|
+
/* normalize component */
|
|
22776
|
+
|
|
22777
|
+
var Unlink_component = Object(componentNormalizer["a" /* default */])(
|
|
22778
|
+
Unlink_script,
|
|
22779
|
+
Unlinkvue_type_template_id_243416c6_render,
|
|
22780
|
+
Unlinkvue_type_template_id_243416c6_staticRenderFns,
|
|
22781
|
+
false,
|
|
22782
|
+
null,
|
|
22783
|
+
null,
|
|
22784
|
+
null
|
|
22785
|
+
|
|
22786
|
+
)
|
|
22787
|
+
|
|
22788
|
+
/* harmony default export */ var Unlink = (Unlink_component.exports);
|
|
22789
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/NewTab.vue?vue&type=template&id=0c7f37a6
|
|
22790
|
+
var NewTabvue_type_template_id_0c7f37a6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"width":"24","height":"24","focusable":"false","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z","fill":"currentColor"}})])}
|
|
22791
|
+
var NewTabvue_type_template_id_0c7f37a6_staticRenderFns = []
|
|
22792
|
+
|
|
22793
|
+
|
|
22794
|
+
// CONCATENATED MODULE: ./src/components/svg/NewTab.vue?vue&type=template&id=0c7f37a6
|
|
22795
|
+
|
|
22796
|
+
// CONCATENATED MODULE: ./src/components/svg/NewTab.vue
|
|
22797
|
+
|
|
22798
|
+
var NewTab_script = {}
|
|
22799
|
+
|
|
22800
|
+
|
|
22801
|
+
/* normalize component */
|
|
22802
|
+
|
|
22803
|
+
var NewTab_component = Object(componentNormalizer["a" /* default */])(
|
|
22804
|
+
NewTab_script,
|
|
22805
|
+
NewTabvue_type_template_id_0c7f37a6_render,
|
|
22806
|
+
NewTabvue_type_template_id_0c7f37a6_staticRenderFns,
|
|
22807
|
+
false,
|
|
22808
|
+
null,
|
|
22809
|
+
null,
|
|
22810
|
+
null
|
|
22811
|
+
|
|
22812
|
+
)
|
|
22813
|
+
|
|
22814
|
+
/* harmony default export */ var NewTab = (NewTab_component.exports);
|
|
22815
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/Copy.vue?vue&type=template&id=91be3a12
|
|
22816
|
+
var Copyvue_type_template_id_91be3a12_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"width":"24","height":"24","focusable":"false","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z","fill":"currentColor"}})])}
|
|
22817
|
+
var Copyvue_type_template_id_91be3a12_staticRenderFns = []
|
|
22818
|
+
|
|
22819
|
+
|
|
22820
|
+
// CONCATENATED MODULE: ./src/components/svg/Copy.vue?vue&type=template&id=91be3a12
|
|
22821
|
+
|
|
22822
|
+
// CONCATENATED MODULE: ./src/components/svg/Copy.vue
|
|
22823
|
+
|
|
22824
|
+
var Copy_script = {}
|
|
22825
|
+
|
|
22826
|
+
|
|
22827
|
+
/* normalize component */
|
|
22828
|
+
|
|
22829
|
+
var Copy_component = Object(componentNormalizer["a" /* default */])(
|
|
22830
|
+
Copy_script,
|
|
22831
|
+
Copyvue_type_template_id_91be3a12_render,
|
|
22832
|
+
Copyvue_type_template_id_91be3a12_staticRenderFns,
|
|
22833
|
+
false,
|
|
22834
|
+
null,
|
|
22835
|
+
null,
|
|
22836
|
+
null
|
|
22837
|
+
|
|
22838
|
+
)
|
|
22839
|
+
|
|
22840
|
+
/* harmony default export */ var Copy = (Copy_component.exports);
|
|
22160
22841
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/ImageSvg.vue?vue&type=template&id=5a7279cf
|
|
22161
22842
|
var ImageSvgvue_type_template_id_5a7279cf_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"width":"24","height":"24","focusable":"false"}},[_c('path',{attrs:{"d":"m5 15.7 3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7ZM5 18V19h3l2.8-2.9-2-2L5 17.9Zm14-3-2.5-2.4-6.4 6.5H19v-4ZM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z","fill-rule":"nonzero"}})])}
|
|
22162
22843
|
var ImageSvgvue_type_template_id_5a7279cf_staticRenderFns = []
|
|
@@ -23030,6 +23711,150 @@ var AlignIcon_component = Object(componentNormalizer["a" /* default */])(
|
|
|
23030
23711
|
)
|
|
23031
23712
|
|
|
23032
23713
|
/* harmony default export */ var AlignIcon = (AlignIcon_component.exports);
|
|
23714
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/AlignTop.vue?vue&type=template&id=d52f1fa8
|
|
23715
|
+
var AlignTopvue_type_template_id_d52f1fa8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"width":_vm.width,"height":_vm.height,"viewBox":"0 0 24 24","fill":"currentColor","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M2 4C2 3.44772 2.44772 3 3 3H21C21.5523 3 22 3.44772 22 4C22 4.55228 21.5523 5 21 5H3C2.44772 5 2 4.55228 2 4Z","fill":"currentColor"}}),_c('path',{attrs:{"d":"M13 10.4142L14.2929 11.7071C14.6834 12.0976 15.3166 12.0976 15.7071 11.7071C16.0976 11.3166 16.0976 10.6834 15.7071 10.2929L12.7071 7.29289C12.3166 6.90237 11.6834 6.90237 11.2929 7.29289L8.29289 10.2929C7.90237 10.6834 7.90237 11.3166 8.29289 11.7071C8.68342 12.0976 9.31658 12.0976 9.70711 11.7071L11 10.4142L11 20C11 20.5523 11.4477 21 12 21C12.5523 21 13 20.5523 13 20L13 10.4142Z","fill":"currentColor"}})])}
|
|
23716
|
+
var AlignTopvue_type_template_id_d52f1fa8_staticRenderFns = []
|
|
23717
|
+
|
|
23718
|
+
|
|
23719
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignTop.vue?vue&type=template&id=d52f1fa8
|
|
23720
|
+
|
|
23721
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/babel-loader/lib??ref--15!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/AlignTop.vue?vue&type=script&lang=js
|
|
23722
|
+
//
|
|
23723
|
+
//
|
|
23724
|
+
//
|
|
23725
|
+
//
|
|
23726
|
+
|
|
23727
|
+
/* harmony default export */ var AlignTopvue_type_script_lang_js = ({
|
|
23728
|
+
name: 'AlignTop',
|
|
23729
|
+
props: {
|
|
23730
|
+
width: {
|
|
23731
|
+
type: [String, Number],
|
|
23732
|
+
default: 20
|
|
23733
|
+
},
|
|
23734
|
+
height: {
|
|
23735
|
+
type: [String, Number],
|
|
23736
|
+
default: 20
|
|
23737
|
+
}
|
|
23738
|
+
}
|
|
23739
|
+
});
|
|
23740
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignTop.vue?vue&type=script&lang=js
|
|
23741
|
+
/* harmony default export */ var svg_AlignTopvue_type_script_lang_js = (AlignTopvue_type_script_lang_js);
|
|
23742
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignTop.vue
|
|
23743
|
+
|
|
23744
|
+
|
|
23745
|
+
|
|
23746
|
+
|
|
23747
|
+
|
|
23748
|
+
/* normalize component */
|
|
23749
|
+
|
|
23750
|
+
var AlignTop_component = Object(componentNormalizer["a" /* default */])(
|
|
23751
|
+
svg_AlignTopvue_type_script_lang_js,
|
|
23752
|
+
AlignTopvue_type_template_id_d52f1fa8_render,
|
|
23753
|
+
AlignTopvue_type_template_id_d52f1fa8_staticRenderFns,
|
|
23754
|
+
false,
|
|
23755
|
+
null,
|
|
23756
|
+
null,
|
|
23757
|
+
null
|
|
23758
|
+
|
|
23759
|
+
)
|
|
23760
|
+
|
|
23761
|
+
/* harmony default export */ var AlignTop = (AlignTop_component.exports);
|
|
23762
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/AlignMiddle.vue?vue&type=template&id=ae9afae4
|
|
23763
|
+
var AlignMiddlevue_type_template_id_ae9afae4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"width":_vm.width,"height":_vm.height,"viewBox":"0 0 24 24","fill":"currentColor","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M3 12H21","stroke":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M12 22V16","stroke":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M12 2L12 8","stroke":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M15 19L12 16L9 19","stroke":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M9 5L12 8L15 5","stroke":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])}
|
|
23764
|
+
var AlignMiddlevue_type_template_id_ae9afae4_staticRenderFns = []
|
|
23765
|
+
|
|
23766
|
+
|
|
23767
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignMiddle.vue?vue&type=template&id=ae9afae4
|
|
23768
|
+
|
|
23769
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/babel-loader/lib??ref--15!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/AlignMiddle.vue?vue&type=script&lang=js
|
|
23770
|
+
//
|
|
23771
|
+
//
|
|
23772
|
+
//
|
|
23773
|
+
//
|
|
23774
|
+
|
|
23775
|
+
/* harmony default export */ var AlignMiddlevue_type_script_lang_js = ({
|
|
23776
|
+
name: 'AlignMiddle',
|
|
23777
|
+
props: {
|
|
23778
|
+
width: {
|
|
23779
|
+
type: [String, Number],
|
|
23780
|
+
default: 20
|
|
23781
|
+
},
|
|
23782
|
+
height: {
|
|
23783
|
+
type: [String, Number],
|
|
23784
|
+
default: 20
|
|
23785
|
+
}
|
|
23786
|
+
}
|
|
23787
|
+
});
|
|
23788
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignMiddle.vue?vue&type=script&lang=js
|
|
23789
|
+
/* harmony default export */ var svg_AlignMiddlevue_type_script_lang_js = (AlignMiddlevue_type_script_lang_js);
|
|
23790
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignMiddle.vue
|
|
23791
|
+
|
|
23792
|
+
|
|
23793
|
+
|
|
23794
|
+
|
|
23795
|
+
|
|
23796
|
+
/* normalize component */
|
|
23797
|
+
|
|
23798
|
+
var AlignMiddle_component = Object(componentNormalizer["a" /* default */])(
|
|
23799
|
+
svg_AlignMiddlevue_type_script_lang_js,
|
|
23800
|
+
AlignMiddlevue_type_template_id_ae9afae4_render,
|
|
23801
|
+
AlignMiddlevue_type_template_id_ae9afae4_staticRenderFns,
|
|
23802
|
+
false,
|
|
23803
|
+
null,
|
|
23804
|
+
null,
|
|
23805
|
+
null
|
|
23806
|
+
|
|
23807
|
+
)
|
|
23808
|
+
|
|
23809
|
+
/* harmony default export */ var AlignMiddle = (AlignMiddle_component.exports);
|
|
23810
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/AlignBottom.vue?vue&type=template&id=5e8def55
|
|
23811
|
+
var AlignBottomvue_type_template_id_5e8def55_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"width":_vm.width,"height":_vm.height,"viewBox":"0 0 24 24","fill":"currentColor","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M11 11.5858L9.70711 10.2929C9.31658 9.90237 8.68342 9.90237 8.29289 10.2929C7.90237 10.6834 7.90237 11.3166 8.29289 11.7071L11.2929 14.7071C11.6834 15.0976 12.3166 15.0976 12.7071 14.7071L15.7071 11.7071C16.0976 11.3166 16.0976 10.6834 15.7071 10.2929C15.3166 9.90237 14.6834 9.90237 14.2929 10.2929L13 11.5858V4C13 3.44771 12.5523 3 12 3C11.4477 3 11 3.44771 11 4V11.5858Z","fill":"currentColor"}}),_c('path',{attrs:{"d":"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z","fill":"currentColor"}})])}
|
|
23812
|
+
var AlignBottomvue_type_template_id_5e8def55_staticRenderFns = []
|
|
23813
|
+
|
|
23814
|
+
|
|
23815
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignBottom.vue?vue&type=template&id=5e8def55
|
|
23816
|
+
|
|
23817
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/babel-loader/lib??ref--15!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/AlignBottom.vue?vue&type=script&lang=js
|
|
23818
|
+
//
|
|
23819
|
+
//
|
|
23820
|
+
//
|
|
23821
|
+
//
|
|
23822
|
+
|
|
23823
|
+
/* harmony default export */ var AlignBottomvue_type_script_lang_js = ({
|
|
23824
|
+
name: 'AlignBottom',
|
|
23825
|
+
props: {
|
|
23826
|
+
width: {
|
|
23827
|
+
type: [String, Number],
|
|
23828
|
+
default: 20
|
|
23829
|
+
},
|
|
23830
|
+
height: {
|
|
23831
|
+
type: [String, Number],
|
|
23832
|
+
default: 20
|
|
23833
|
+
}
|
|
23834
|
+
}
|
|
23835
|
+
});
|
|
23836
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignBottom.vue?vue&type=script&lang=js
|
|
23837
|
+
/* harmony default export */ var svg_AlignBottomvue_type_script_lang_js = (AlignBottomvue_type_script_lang_js);
|
|
23838
|
+
// CONCATENATED MODULE: ./src/components/svg/AlignBottom.vue
|
|
23839
|
+
|
|
23840
|
+
|
|
23841
|
+
|
|
23842
|
+
|
|
23843
|
+
|
|
23844
|
+
/* normalize component */
|
|
23845
|
+
|
|
23846
|
+
var AlignBottom_component = Object(componentNormalizer["a" /* default */])(
|
|
23847
|
+
svg_AlignBottomvue_type_script_lang_js,
|
|
23848
|
+
AlignBottomvue_type_template_id_5e8def55_render,
|
|
23849
|
+
AlignBottomvue_type_template_id_5e8def55_staticRenderFns,
|
|
23850
|
+
false,
|
|
23851
|
+
null,
|
|
23852
|
+
null,
|
|
23853
|
+
null
|
|
23854
|
+
|
|
23855
|
+
)
|
|
23856
|
+
|
|
23857
|
+
/* harmony default export */ var AlignBottom = (AlignBottom_component.exports);
|
|
23033
23858
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/svg/MergeCells.vue?vue&type=template&id=557c4f86
|
|
23034
23859
|
var MergeCellsvue_type_template_id_557c4f86_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"width":_vm.width,"height":_vm.height,"viewBox":"0 0 20 20","fill":"currentColor","aria-hidden":"true"}},[_c('path',{attrs:{"d":"M2 3h7v5H2V3zm0 6h7v5H2V9zm9-6h7v5h-7V3zm0 6h7v5h-7V9z","opacity":"0.3"}}),_c('path',{attrs:{"d":"M2 14h16v3H2v-3z"}}),_c('path',{attrs:{"d":"M9 15.5l-2-1.5v1H4v1h3v1l2-1.5zm7 0l-2-1.5v1h-3v1h3v1l2-1.5z"}})])}
|
|
23035
23860
|
var MergeCellsvue_type_template_id_557c4f86_staticRenderFns = []
|
|
@@ -23171,6 +23996,13 @@ var SplitCell_component = Object(componentNormalizer["a" /* default */])(
|
|
|
23171
23996
|
|
|
23172
23997
|
|
|
23173
23998
|
|
|
23999
|
+
|
|
24000
|
+
|
|
24001
|
+
|
|
24002
|
+
|
|
24003
|
+
|
|
24004
|
+
|
|
24005
|
+
|
|
23174
24006
|
|
|
23175
24007
|
|
|
23176
24008
|
|
|
@@ -23181,14 +24013,14 @@ var SplitCell_component = Object(componentNormalizer["a" /* default */])(
|
|
|
23181
24013
|
|
|
23182
24014
|
/***/ }),
|
|
23183
24015
|
|
|
23184
|
-
/***/ "
|
|
24016
|
+
/***/ "a0bc":
|
|
23185
24017
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23186
24018
|
|
|
23187
24019
|
// extracted by mini-css-extract-plugin
|
|
23188
24020
|
|
|
23189
24021
|
/***/ }),
|
|
23190
24022
|
|
|
23191
|
-
/***/ "
|
|
24023
|
+
/***/ "a407":
|
|
23192
24024
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23193
24025
|
|
|
23194
24026
|
// extracted by mini-css-extract-plugin
|
|
@@ -23200,12 +24032,12 @@ var SplitCell_component = Object(componentNormalizer["a" /* default */])(
|
|
|
23200
24032
|
|
|
23201
24033
|
"use strict";
|
|
23202
24034
|
|
|
23203
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Modals/ImageModal.vue?vue&type=template&id=
|
|
23204
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('div',{staticClass:"bbl-upload-modal-overlay",on:{"click":_vm.handleOverlayClick}},[_c('div',{staticClass:"bbl-upload-modal",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"bbl-modal-header"},[_c('h3',[_vm._v("Insert Image")]),_c('button',{staticClass:"close-btn",on:{"click":_vm.close}},[_vm._v("×")])]),_c('div',{staticClass:"bbl-modal-body"},[_c('div',{staticClass:"tab-buttons"},[_c('button',{class:['tab-btn', { active: _vm.activeTab === 'upload' }],on:{"click":function($event){_vm.activeTab = 'upload'}}},[_vm._v(" Upload File ")]),_c('button',{class:['tab-btn', { active: _vm.activeTab === 'url' }],on:{"click":function($event){_vm.activeTab = 'url'}}},[_vm._v(" From URL ")])]),(_vm.activeTab === 'upload')?_c('div',{staticClass:"bbl-tab-content"},[(!_vm.previewUrl)?_c('div',{staticClass:"drop-zone",class:{ 'drag-over': _vm.isDragOver },on:{"click":function($event){return _vm.$refs.fileInput.click()},"dragover":function($event){$event.preventDefault();_vm.isDragOver = true},"dragleave":function($event){_vm.isDragOver = false},"drop":function($event){$event.preventDefault();return _vm.handleDrop.apply(null, arguments)}}},[_c('div',{staticClass:"drop-zone-icon"},[_vm._v("📁")]),_c('div',{staticClass:"drop-zone-title"},[_vm._v("Drop image here or click to browse")]),_c('div',{staticClass:"drop-zone-subtitle"},[_vm._v("Supports: JPG, PNG, GIF, WebP (max "+_vm._s(Math.round(_vm.maxFileSize / (1024 * 1024)))+"MB)")]),_c('input',{ref:"fileInput",staticStyle:{"display":"none"},attrs:{"type":"file","accept":"image/*"},on:{"change":_vm.handleFileSelect}})]):_c('div',{staticClass:"preview-container"},[_c('img',{staticClass:"preview-image",attrs:{"src":_vm.previewUrl,"alt":"Preview"}}),_c('div',{staticClass:"preview-info"},[_c('div',{staticClass:"preview-filename"},[_vm._v(_vm._s(_vm.selectedFile && _vm.selectedFile.name))]),_c('div',{staticClass:"preview-size"},[_vm._v(_vm._s(_vm.formatFileSize(_vm.selectedFile && _vm.selectedFile.size)))])]),(!_vm.isUploading && !_vm.uploadError && _vm.uploadedUrl)?_c('div',{staticClass:"upload-success"},[_vm.
|
|
23205
|
-
var staticRenderFns = [
|
|
24035
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Modals/ImageModal.vue?vue&type=template&id=a6f3fcaa&scoped=true
|
|
24036
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"modal","appear":""}},[(_vm.visible)?_c('div',{staticClass:"bbl-upload-modal-overlay",on:{"click":_vm.handleOverlayClick}},[_c('transition',{attrs:{"name":"modal-content","appear":""}},[_c('div',{staticClass:"bbl-upload-modal",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"bbl-modal-header"},[_c('h3',[_vm._v("Insert Image")]),_c('button',{staticClass:"close-btn",on:{"click":_vm.close}},[_vm._v("×")])]),_c('div',{staticClass:"bbl-modal-body"},[_c('div',{staticClass:"tab-buttons"},[_c('button',{class:['tab-btn', { active: _vm.activeTab === 'upload' }],on:{"click":function($event){_vm.activeTab = 'upload'}}},[_vm._v(" Upload File ")]),_c('button',{class:['tab-btn', { active: _vm.activeTab === 'url' }],on:{"click":function($event){_vm.activeTab = 'url'}}},[_vm._v(" From URL ")])]),(_vm.activeTab === 'upload')?_c('div',{staticClass:"bbl-tab-content"},[(!_vm.previewUrl)?_c('div',{staticClass:"drop-zone",class:{ 'drag-over': _vm.isDragOver },on:{"click":function($event){return _vm.$refs.fileInput.click()},"dragover":function($event){$event.preventDefault();_vm.isDragOver = true},"dragleave":function($event){_vm.isDragOver = false},"drop":function($event){$event.preventDefault();return _vm.handleDrop.apply(null, arguments)}}},[_c('div',{staticClass:"drop-zone-icon"},[_vm._v("📁")]),_c('div',{staticClass:"drop-zone-title"},[_vm._v("Drop image here or click to browse")]),_c('div',{staticClass:"drop-zone-subtitle"},[_vm._v("Supports: JPG, PNG, GIF, WebP (max "+_vm._s(Math.round(_vm.maxFileSize / (1024 * 1024)))+"MB)")]),_c('input',{ref:"fileInput",staticStyle:{"display":"none"},attrs:{"type":"file","accept":"image/*"},on:{"change":_vm.handleFileSelect}})]):_c('div',{staticClass:"preview-container"},[_c('img',{staticClass:"preview-image",attrs:{"src":_vm.previewUrl,"alt":"Preview"}}),_c('div',{staticClass:"preview-info"},[_c('div',{staticClass:"preview-filename"},[_vm._v(_vm._s(_vm.selectedFile && _vm.selectedFile.name))]),_c('div',{staticClass:"preview-size"},[_vm._v(_vm._s(_vm.formatFileSize(_vm.selectedFile && _vm.selectedFile.size)))])]),(!_vm.isUploading && !_vm.uploadError && _vm.uploadedUrl)?_c('div',{staticClass:"upload-success"},[_c('div',{staticClass:"success-message"},[_c('span',{staticClass:"success-icon"},[_vm._v("✅")]),_vm._v(" Upload complete! Ready to insert. ")])]):_vm._e(),(_vm.isUploading)?_c('div',{staticClass:"upload-progress"},[_c('div',{staticClass:"progress-bar"},[_c('div',{staticClass:"progress-fill",style:({ width: _vm.uploadProgress + '%' })})]),_c('div',{staticClass:"progress-text"},[_vm._v("Uploading... "+_vm._s(_vm.uploadProgress)+"%")])]):_vm._e(),(_vm.uploadError)?_c('div',{staticClass:"upload-error"},[_c('div',{staticClass:"error-message"},[_c('span',{staticClass:"error-icon"},[_vm._v("⚠️")]),_vm._v(" "+_vm._s(_vm.uploadError)+" ")]),_c('div',{staticClass:"error-actions"},[_c('button',{staticClass:"retry-btn",on:{"click":function($event){return _vm.retryUpload(_vm.selectedFile)}}},[_vm._v("Try Again")]),_c('button',{staticClass:"local-btn",on:{"click":_vm.insertLocalImage}},[_vm._v("Use Local File")])])]):_vm._e(),(!_vm.isUploading && !_vm.uploadError)?_c('button',{staticClass:"change-btn",on:{"click":_vm.changeFile}},[_vm._v("Change Image")]):_vm._e()])]):_vm._e(),(_vm.activeTab === 'url')?_c('div',{staticClass:"bbl-tab-content"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.imageUrl),expression:"imageUrl"}],staticClass:"url-input",attrs:{"type":"url","placeholder":"https://example.com/image.jpg"},domProps:{"value":(_vm.imageUrl)},on:{"input":function($event){if($event.target.composing){ return; }_vm.imageUrl=$event.target.value}}}),_c('div',{staticClass:"url-help"},[_vm._v("Enter a direct link to an image file")])]):_vm._e()]),_c('div',{staticClass:"bbl-modal-footer"},[_c('button',{staticClass:"cancel-btn",on:{"click":_vm.close}},[_vm._v("Cancel")]),_c('button',{staticClass:"insert-btn",attrs:{"disabled":_vm.isUploading || (_vm.activeTab === 'upload' && !_vm.selectedFile) || (_vm.activeTab === 'url' && !_vm.imageUrl.trim())},on:{"click":_vm.insertImage}},[(_vm.isUploading)?_c('span',[_vm._v("Uploading...")]):_c('span',[_vm._v("Insert Image")])])])])])],1):_vm._e()])}
|
|
24037
|
+
var staticRenderFns = []
|
|
23206
24038
|
|
|
23207
24039
|
|
|
23208
|
-
// CONCATENATED MODULE: ./src/components/Modals/ImageModal.vue?vue&type=template&id=
|
|
24040
|
+
// CONCATENATED MODULE: ./src/components/Modals/ImageModal.vue?vue&type=template&id=a6f3fcaa&scoped=true
|
|
23209
24041
|
|
|
23210
24042
|
// EXTERNAL MODULE: ./src/mixins/uploadMixin.js
|
|
23211
24043
|
var uploadMixin = __webpack_require__("d86d");
|
|
@@ -23454,6 +24286,10 @@ function _asyncToGenerator(n) {
|
|
|
23454
24286
|
//
|
|
23455
24287
|
//
|
|
23456
24288
|
//
|
|
24289
|
+
//
|
|
24290
|
+
//
|
|
24291
|
+
//
|
|
24292
|
+
//
|
|
23457
24293
|
|
|
23458
24294
|
|
|
23459
24295
|
/* harmony default export */ var ImageModalvue_type_script_lang_js = ({
|
|
@@ -23643,8 +24479,8 @@ function _asyncToGenerator(n) {
|
|
|
23643
24479
|
});
|
|
23644
24480
|
// CONCATENATED MODULE: ./src/components/Modals/ImageModal.vue?vue&type=script&lang=js
|
|
23645
24481
|
/* harmony default export */ var Modals_ImageModalvue_type_script_lang_js = (ImageModalvue_type_script_lang_js);
|
|
23646
|
-
// EXTERNAL MODULE: ./src/components/Modals/ImageModal.vue?vue&type=style&index=0&id=
|
|
23647
|
-
var
|
|
24482
|
+
// EXTERNAL MODULE: ./src/components/Modals/ImageModal.vue?vue&type=style&index=0&id=a6f3fcaa&prod&scoped=true&lang=css
|
|
24483
|
+
var ImageModalvue_type_style_index_0_id_a6f3fcaa_prod_scoped_true_lang_css = __webpack_require__("2725");
|
|
23648
24484
|
|
|
23649
24485
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
23650
24486
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -23664,7 +24500,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
23664
24500
|
staticRenderFns,
|
|
23665
24501
|
false,
|
|
23666
24502
|
null,
|
|
23667
|
-
"
|
|
24503
|
+
"a6f3fcaa",
|
|
23668
24504
|
null
|
|
23669
24505
|
|
|
23670
24506
|
)
|
|
@@ -23685,7 +24521,7 @@ var staticRenderFns = []
|
|
|
23685
24521
|
|
|
23686
24522
|
// CONCATENATED MODULE: ./src/components/Menus/ImageBubbleMenu.vue?vue&type=template&id=ba273c7c&scoped=true
|
|
23687
24523
|
|
|
23688
|
-
// EXTERNAL MODULE: ./src/components/svg/index.js +
|
|
24524
|
+
// EXTERNAL MODULE: ./src/components/svg/index.js + 207 modules
|
|
23689
24525
|
var svg = __webpack_require__("9f9d");
|
|
23690
24526
|
|
|
23691
24527
|
// EXTERNAL MODULE: ./src/components/Toolbar/BubbleMenuDropdown.vue + 4 modules
|
|
@@ -23764,18 +24600,18 @@ var BubbleMenuDropdown = __webpack_require__("690e");
|
|
|
23764
24600
|
/* harmony default export */ var ImageBubbleMenuvue_type_script_lang_js = ({
|
|
23765
24601
|
name: 'ImageBubbleMenu',
|
|
23766
24602
|
components: {
|
|
23767
|
-
LeftAlign: svg["
|
|
23768
|
-
CenterAlign: svg["
|
|
23769
|
-
RightAlign: svg["
|
|
23770
|
-
BlockDisplay: svg["
|
|
23771
|
-
InlineDisplay: svg["
|
|
23772
|
-
CaptionTop: svg["
|
|
23773
|
-
CaptionBottom: svg["
|
|
23774
|
-
NoCaption: svg["
|
|
23775
|
-
Delete: svg["
|
|
23776
|
-
SpacingSmall: svg["
|
|
23777
|
-
SpacingMedium: svg["
|
|
23778
|
-
SpacingLarge: svg["
|
|
24603
|
+
LeftAlign: svg["B" /* LeftAlign */],
|
|
24604
|
+
CenterAlign: svg["o" /* CenterAlign */],
|
|
24605
|
+
RightAlign: svg["M" /* RightAlign */],
|
|
24606
|
+
BlockDisplay: svg["i" /* BlockDisplay */],
|
|
24607
|
+
InlineDisplay: svg["z" /* InlineDisplay */],
|
|
24608
|
+
CaptionTop: svg["m" /* CaptionTop */],
|
|
24609
|
+
CaptionBottom: svg["l" /* CaptionBottom */],
|
|
24610
|
+
NoCaption: svg["I" /* NoCaption */],
|
|
24611
|
+
Delete: svg["v" /* Delete */],
|
|
24612
|
+
SpacingSmall: svg["Q" /* SpacingSmall */],
|
|
24613
|
+
SpacingMedium: svg["P" /* SpacingMedium */],
|
|
24614
|
+
SpacingLarge: svg["O" /* SpacingLarge */],
|
|
23779
24615
|
BubbleMenuDropdown: BubbleMenuDropdown["a" /* default */]
|
|
23780
24616
|
},
|
|
23781
24617
|
props: {
|
|
@@ -23818,35 +24654,35 @@ var BubbleMenuDropdown = __webpack_require__("690e");
|
|
|
23818
24654
|
},
|
|
23819
24655
|
currentAlignIcon: function currentAlignIcon() {
|
|
23820
24656
|
var align = this.editor.getAttributes('resizableImage').align || 'left';
|
|
23821
|
-
return align === 'center' ? svg["
|
|
24657
|
+
return align === 'center' ? svg["o" /* CenterAlign */] : align === 'right' ? svg["M" /* RightAlign */] : svg["B" /* LeftAlign */];
|
|
23822
24658
|
},
|
|
23823
24659
|
currentSpacingIcon: function currentSpacingIcon() {
|
|
23824
24660
|
var spacing = this.editor.getAttributes('resizableImage').spacing || 'medium';
|
|
23825
|
-
return spacing === 'small' ? svg["
|
|
24661
|
+
return spacing === 'small' ? svg["Q" /* SpacingSmall */] : spacing === 'large' ? svg["O" /* SpacingLarge */] : svg["P" /* SpacingMedium */];
|
|
23826
24662
|
},
|
|
23827
24663
|
currentCaptionIcon: function currentCaptionIcon() {
|
|
23828
24664
|
var position = this.editor.getAttributes('resizableImage').captionPosition || 'none';
|
|
23829
|
-
return position === 'top' ? svg["
|
|
24665
|
+
return position === 'top' ? svg["m" /* CaptionTop */] : position === 'bottom' ? svg["l" /* CaptionBottom */] : svg["I" /* NoCaption */];
|
|
23830
24666
|
},
|
|
23831
24667
|
alignmentItems: function alignmentItems() {
|
|
23832
24668
|
var _this = this;
|
|
23833
24669
|
return [{
|
|
23834
24670
|
label: 'Align Left',
|
|
23835
|
-
icon: svg["
|
|
24671
|
+
icon: svg["B" /* LeftAlign */],
|
|
23836
24672
|
action: function action() {
|
|
23837
24673
|
return _this.setAlign('left');
|
|
23838
24674
|
},
|
|
23839
24675
|
active: this.isAlign('left')
|
|
23840
24676
|
}, {
|
|
23841
24677
|
label: 'Align Center',
|
|
23842
|
-
icon: svg["
|
|
24678
|
+
icon: svg["o" /* CenterAlign */],
|
|
23843
24679
|
action: function action() {
|
|
23844
24680
|
return _this.setAlign('center');
|
|
23845
24681
|
},
|
|
23846
24682
|
active: this.isAlign('center')
|
|
23847
24683
|
}, {
|
|
23848
24684
|
label: 'Align Right',
|
|
23849
|
-
icon: svg["
|
|
24685
|
+
icon: svg["M" /* RightAlign */],
|
|
23850
24686
|
action: function action() {
|
|
23851
24687
|
return _this.setAlign('right');
|
|
23852
24688
|
},
|
|
@@ -23857,21 +24693,21 @@ var BubbleMenuDropdown = __webpack_require__("690e");
|
|
|
23857
24693
|
var _this2 = this;
|
|
23858
24694
|
return [{
|
|
23859
24695
|
label: 'Small Spacing',
|
|
23860
|
-
icon: svg["
|
|
24696
|
+
icon: svg["Q" /* SpacingSmall */],
|
|
23861
24697
|
action: function action() {
|
|
23862
24698
|
return _this2.setSpacing('small');
|
|
23863
24699
|
},
|
|
23864
24700
|
active: this.isSpacing('small')
|
|
23865
24701
|
}, {
|
|
23866
24702
|
label: 'Medium Spacing',
|
|
23867
|
-
icon: svg["
|
|
24703
|
+
icon: svg["P" /* SpacingMedium */],
|
|
23868
24704
|
action: function action() {
|
|
23869
24705
|
return _this2.setSpacing('medium');
|
|
23870
24706
|
},
|
|
23871
24707
|
active: this.isSpacing('medium')
|
|
23872
24708
|
}, {
|
|
23873
24709
|
label: 'Large Spacing',
|
|
23874
|
-
icon: svg["
|
|
24710
|
+
icon: svg["O" /* SpacingLarge */],
|
|
23875
24711
|
action: function action() {
|
|
23876
24712
|
return _this2.setSpacing('large');
|
|
23877
24713
|
},
|
|
@@ -23882,21 +24718,21 @@ var BubbleMenuDropdown = __webpack_require__("690e");
|
|
|
23882
24718
|
var _this3 = this;
|
|
23883
24719
|
return [{
|
|
23884
24720
|
label: 'No Caption',
|
|
23885
|
-
icon: svg["
|
|
24721
|
+
icon: svg["I" /* NoCaption */],
|
|
23886
24722
|
action: function action() {
|
|
23887
24723
|
return _this3.setCaptionPosition('none');
|
|
23888
24724
|
},
|
|
23889
24725
|
active: this.isCaptionPosition('none')
|
|
23890
24726
|
}, {
|
|
23891
24727
|
label: 'Caption Top',
|
|
23892
|
-
icon: svg["
|
|
24728
|
+
icon: svg["m" /* CaptionTop */],
|
|
23893
24729
|
action: function action() {
|
|
23894
24730
|
return _this3.setCaptionPosition('top');
|
|
23895
24731
|
},
|
|
23896
24732
|
active: this.isCaptionPosition('top')
|
|
23897
24733
|
}, {
|
|
23898
24734
|
label: 'Caption Bottom',
|
|
23899
|
-
icon: svg["
|
|
24735
|
+
icon: svg["l" /* CaptionBottom */],
|
|
23900
24736
|
action: function action() {
|
|
23901
24737
|
return _this3.setCaptionPosition('bottom');
|
|
23902
24738
|
},
|
|
@@ -24066,13 +24902,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
24066
24902
|
|
|
24067
24903
|
/***/ }),
|
|
24068
24904
|
|
|
24069
|
-
/***/ "b177":
|
|
24070
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
24071
|
-
|
|
24072
|
-
// extracted by mini-css-extract-plugin
|
|
24073
|
-
|
|
24074
|
-
/***/ }),
|
|
24075
|
-
|
|
24076
24905
|
/***/ "b40f":
|
|
24077
24906
|
/***/ (function(module, exports, __webpack_require__) {
|
|
24078
24907
|
|
|
@@ -26860,12 +27689,12 @@ module.exports = require("@tiptap/starter-kit");
|
|
|
26860
27689
|
|
|
26861
27690
|
/***/ }),
|
|
26862
27691
|
|
|
26863
|
-
/***/ "
|
|
27692
|
+
/***/ "c0c0":
|
|
26864
27693
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
26865
27694
|
|
|
26866
27695
|
"use strict";
|
|
26867
|
-
/* harmony import */ var
|
|
26868
|
-
/* harmony import */ var
|
|
27696
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditorOptionsAPI_vue_vue_type_style_index_0_id_fd2c025c_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3a65");
|
|
27697
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditorOptionsAPI_vue_vue_type_style_index_0_id_fd2c025c_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditorOptionsAPI_vue_vue_type_style_index_0_id_fd2c025c_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
26869
27698
|
/* unused harmony reexport * */
|
|
26870
27699
|
|
|
26871
27700
|
|
|
@@ -26876,12 +27705,12 @@ module.exports = require("@tiptap/starter-kit");
|
|
|
26876
27705
|
|
|
26877
27706
|
"use strict";
|
|
26878
27707
|
|
|
26879
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Modals/LinkModal.vue?vue&type=template&id=
|
|
26880
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('div',{staticClass:"bbl-upload-modal-overlay",on:{"click":_vm.handleOverlayClick}},[_c('div',{staticClass:"bbl-upload-modal",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"bbl-modal-header"},[_c('h3',[_vm._v(_vm._s(_vm.
|
|
27708
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Modals/LinkModal.vue?vue&type=template&id=ad5f3080&scoped=true
|
|
27709
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"modal","appear":""}},[(_vm.visible)?_c('div',{staticClass:"bbl-upload-modal-overlay",on:{"click":_vm.handleOverlayClick}},[_c('transition',{attrs:{"name":"modal-content","appear":""}},[_c('div',{staticClass:"bbl-upload-modal",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"bbl-modal-header"},[_c('h3',[_vm._v(_vm._s(_vm.modalTitle))]),_c('button',{staticClass:"close-btn",on:{"click":_vm.close}},[_vm._v("×")])]),_c('div',{staticClass:"bbl-modal-body"},[_c('div',{staticClass:"bbl-form-group"},[_c('label',{attrs:{"for":"link-text"}},[_vm._v("Link Text")]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.linkText),expression:"linkText"}],staticClass:"form-input",attrs:{"id":"link-text","type":"text","placeholder":"Enter link text"},domProps:{"value":(_vm.linkText)},on:{"input":function($event){if($event.target.composing){ return; }_vm.linkText=$event.target.value}}})]),_c('div',{staticClass:"bbl-form-group"},[_c('label',{attrs:{"for":"link-url"}},[_vm._v("URL")]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.linkUrl),expression:"linkUrl"}],staticClass:"form-input",attrs:{"id":"link-url","type":"url","placeholder":"https://example.com"},domProps:{"value":(_vm.linkUrl)},on:{"input":function($event){if($event.target.composing){ return; }_vm.linkUrl=$event.target.value}}})]),_c('div',{staticClass:"bbl-form-group"},[_c('label',{staticClass:"checkbox-label"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.openInNewTab),expression:"openInNewTab"}],staticClass:"checkbox-input",attrs:{"type":"checkbox"},domProps:{"checked":Array.isArray(_vm.openInNewTab)?_vm._i(_vm.openInNewTab,null)>-1:(_vm.openInNewTab)},on:{"change":function($event){var $$a=_vm.openInNewTab,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.openInNewTab=$$a.concat([$$v]))}else{$$i>-1&&(_vm.openInNewTab=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.openInNewTab=$$c}}}}),_vm._v(" Open in new tab ")])])]),_c('div',{staticClass:"bbl-modal-footer"},[_c('button',{staticClass:"cancel-btn",on:{"click":_vm.close}},[_vm._v("Cancel")]),(_vm.isEditing)?_c('button',{staticClass:"remove-btn",on:{"click":_vm.removeLink}},[_vm._v("Remove Link")]):_vm._e(),_c('button',{staticClass:"insert-btn",on:{"click":_vm.insertLink}},[_vm._v(" "+_vm._s(_vm.isEditing ? 'Update Link' : 'Add Link')+" ")])])])])],1):_vm._e()])}
|
|
26881
27710
|
var staticRenderFns = []
|
|
26882
27711
|
|
|
26883
27712
|
|
|
26884
|
-
// CONCATENATED MODULE: ./src/components/Modals/LinkModal.vue?vue&type=template&id=
|
|
27713
|
+
// CONCATENATED MODULE: ./src/components/Modals/LinkModal.vue?vue&type=template&id=ad5f3080&scoped=true
|
|
26885
27714
|
|
|
26886
27715
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/babel-loader/lib??ref--15!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Modals/LinkModal.vue?vue&type=script&lang=js
|
|
26887
27716
|
//
|
|
@@ -26938,6 +27767,10 @@ var staticRenderFns = []
|
|
|
26938
27767
|
//
|
|
26939
27768
|
//
|
|
26940
27769
|
//
|
|
27770
|
+
//
|
|
27771
|
+
//
|
|
27772
|
+
//
|
|
27773
|
+
//
|
|
26941
27774
|
|
|
26942
27775
|
/* harmony default export */ var LinkModalvue_type_script_lang_js = ({
|
|
26943
27776
|
name: 'LinkModal',
|
|
@@ -26970,19 +27803,46 @@ var staticRenderFns = []
|
|
|
26970
27803
|
computed: {
|
|
26971
27804
|
isEditing: function isEditing() {
|
|
26972
27805
|
return !!this.initialUrl;
|
|
27806
|
+
},
|
|
27807
|
+
modalTitle: function modalTitle() {
|
|
27808
|
+
return this.isEditing ? 'Edit Link' : 'Add Link';
|
|
26973
27809
|
}
|
|
26974
27810
|
},
|
|
26975
27811
|
watch: {
|
|
26976
27812
|
visible: function visible(newValue) {
|
|
27813
|
+
var _this = this;
|
|
26977
27814
|
if (newValue) {
|
|
26978
|
-
|
|
26979
|
-
this.
|
|
27815
|
+
// When opening modal, set values from props
|
|
27816
|
+
this.linkText = this.initialText || '';
|
|
27817
|
+
this.linkUrl = this.initialUrl || '';
|
|
26980
27818
|
this.openInNewTab = this.initialTarget === '_blank';
|
|
27819
|
+
|
|
27820
|
+
// Focus on appropriate field after modal opens
|
|
27821
|
+
this.$nextTick(function () {
|
|
27822
|
+
if (!_this.isEditing) {
|
|
27823
|
+
// For new links, focus on text field if empty, otherwise URL field
|
|
27824
|
+
var textInput = document.getElementById('link-text');
|
|
27825
|
+
var urlInput = document.getElementById('link-url');
|
|
27826
|
+
if (!_this.linkText && textInput) {
|
|
27827
|
+
textInput.focus();
|
|
27828
|
+
} else if (urlInput) {
|
|
27829
|
+
urlInput.focus();
|
|
27830
|
+
}
|
|
27831
|
+
} else {
|
|
27832
|
+
// For editing, focus on URL field
|
|
27833
|
+
var _urlInput = document.getElementById('link-url');
|
|
27834
|
+
if (_urlInput) {
|
|
27835
|
+
_urlInput.focus();
|
|
27836
|
+
_urlInput.select(); // Select all text in URL field
|
|
27837
|
+
}
|
|
27838
|
+
}
|
|
27839
|
+
});
|
|
26981
27840
|
}
|
|
26982
27841
|
}
|
|
26983
27842
|
},
|
|
26984
27843
|
methods: {
|
|
26985
27844
|
close: function close() {
|
|
27845
|
+
// Clear all fields when closing
|
|
26986
27846
|
this.linkText = '';
|
|
26987
27847
|
this.linkUrl = '';
|
|
26988
27848
|
this.openInNewTab = false;
|
|
@@ -27016,8 +27876,8 @@ var staticRenderFns = []
|
|
|
27016
27876
|
});
|
|
27017
27877
|
// CONCATENATED MODULE: ./src/components/Modals/LinkModal.vue?vue&type=script&lang=js
|
|
27018
27878
|
/* harmony default export */ var Modals_LinkModalvue_type_script_lang_js = (LinkModalvue_type_script_lang_js);
|
|
27019
|
-
// EXTERNAL MODULE: ./src/components/Modals/LinkModal.vue?vue&type=style&index=0&id=
|
|
27020
|
-
var
|
|
27879
|
+
// EXTERNAL MODULE: ./src/components/Modals/LinkModal.vue?vue&type=style&index=0&id=ad5f3080&prod&scoped=true&lang=css
|
|
27880
|
+
var LinkModalvue_type_style_index_0_id_ad5f3080_prod_scoped_true_lang_css = __webpack_require__("f27e");
|
|
27021
27881
|
|
|
27022
27882
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
27023
27883
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -27037,7 +27897,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
27037
27897
|
staticRenderFns,
|
|
27038
27898
|
false,
|
|
27039
27899
|
null,
|
|
27040
|
-
"
|
|
27900
|
+
"ad5f3080",
|
|
27041
27901
|
null
|
|
27042
27902
|
|
|
27043
27903
|
)
|
|
@@ -27980,7 +28840,7 @@ var AlignmentDropdownvue_type_template_id_5acb8492_scoped_true_staticRenderFns =
|
|
|
27980
28840
|
|
|
27981
28841
|
// CONCATENATED MODULE: ./src/components/Toolbar/AlignmentDropdown.vue?vue&type=template&id=5acb8492&scoped=true
|
|
27982
28842
|
|
|
27983
|
-
// EXTERNAL MODULE: ./src/components/svg/index.js +
|
|
28843
|
+
// EXTERNAL MODULE: ./src/components/svg/index.js + 207 modules
|
|
27984
28844
|
var svg = __webpack_require__("9f9d");
|
|
27985
28845
|
|
|
27986
28846
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/babel-loader/lib??ref--15!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Toolbar/AlignmentDropdown.vue?vue&type=script&lang=js
|
|
@@ -28025,10 +28885,10 @@ var svg = __webpack_require__("9f9d");
|
|
|
28025
28885
|
/* harmony default export */ var AlignmentDropdownvue_type_script_lang_js = ({
|
|
28026
28886
|
name: 'AlignmentDropdown',
|
|
28027
28887
|
components: {
|
|
28028
|
-
LeftAlign: svg["
|
|
28029
|
-
CenterAlign: svg["
|
|
28030
|
-
RightAlign: svg["
|
|
28031
|
-
JustifyAlign: svg["
|
|
28888
|
+
LeftAlign: svg["B" /* LeftAlign */],
|
|
28889
|
+
CenterAlign: svg["o" /* CenterAlign */],
|
|
28890
|
+
RightAlign: svg["M" /* RightAlign */],
|
|
28891
|
+
JustifyAlign: svg["A" /* JustifyAlign */]
|
|
28032
28892
|
},
|
|
28033
28893
|
props: {
|
|
28034
28894
|
modelValue: {
|
|
@@ -28172,9 +29032,9 @@ var ListDropdownvue_type_template_id_43bc54c8_scoped_true_staticRenderFns = []
|
|
|
28172
29032
|
/* harmony default export */ var ListDropdownvue_type_script_lang_js = ({
|
|
28173
29033
|
name: 'ListDropdown',
|
|
28174
29034
|
components: {
|
|
28175
|
-
BulletList: svg["
|
|
28176
|
-
NumberList: svg["
|
|
28177
|
-
BoxList: svg["
|
|
29035
|
+
BulletList: svg["k" /* BulletList */],
|
|
29036
|
+
NumberList: svg["J" /* NumberList */],
|
|
29037
|
+
BoxList: svg["j" /* BoxList */]
|
|
28178
29038
|
},
|
|
28179
29039
|
props: {
|
|
28180
29040
|
modelValue: {
|
|
@@ -29079,15 +29939,15 @@ var HighlightPickerDropdown_component = Object(componentNormalizer["a" /* defaul
|
|
|
29079
29939
|
TableDropdown: TableDropdown,
|
|
29080
29940
|
ColorPickerDropdown: ColorPickerDropdown,
|
|
29081
29941
|
HighlightPickerDropdown: HighlightPickerDropdown,
|
|
29082
|
-
Link: svg["
|
|
29083
|
-
ImageSvg: svg["
|
|
29084
|
-
Video: svg["
|
|
29085
|
-
Previous: svg["
|
|
29086
|
-
Next: svg["
|
|
29087
|
-
Code: svg["
|
|
29088
|
-
Quote: svg["
|
|
29089
|
-
ClearFormatting: svg["
|
|
29090
|
-
CodeBlock: svg["
|
|
29942
|
+
Link: svg["C" /* Link */],
|
|
29943
|
+
ImageSvg: svg["y" /* ImageSvg */],
|
|
29944
|
+
Video: svg["T" /* Video */],
|
|
29945
|
+
Previous: svg["K" /* Previous */],
|
|
29946
|
+
Next: svg["H" /* Next */],
|
|
29947
|
+
Code: svg["q" /* Code */],
|
|
29948
|
+
Quote: svg["L" /* Quote */],
|
|
29949
|
+
ClearFormatting: svg["p" /* ClearFormatting */],
|
|
29950
|
+
CodeBlock: svg["r" /* CodeBlock */]
|
|
29091
29951
|
},
|
|
29092
29952
|
props: {
|
|
29093
29953
|
editor: {
|
|
@@ -30165,6 +31025,17 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
30165
31025
|
}
|
|
30166
31026
|
}));
|
|
30167
31027
|
|
|
31028
|
+
/***/ }),
|
|
31029
|
+
|
|
31030
|
+
/***/ "d5e3":
|
|
31031
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
31032
|
+
|
|
31033
|
+
"use strict";
|
|
31034
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoModal_vue_vue_type_style_index_0_id_25f2dd7d_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e509");
|
|
31035
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoModal_vue_vue_type_style_index_0_id_25f2dd7d_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoModal_vue_vue_type_style_index_0_id_25f2dd7d_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
31036
|
+
/* unused harmony reexport * */
|
|
31037
|
+
|
|
31038
|
+
|
|
30168
31039
|
/***/ }),
|
|
30169
31040
|
|
|
30170
31041
|
/***/ "d741":
|
|
@@ -30592,6 +31463,13 @@ var uploadMixin = {
|
|
|
30592
31463
|
/* unused harmony reexport * */
|
|
30593
31464
|
|
|
30594
31465
|
|
|
31466
|
+
/***/ }),
|
|
31467
|
+
|
|
31468
|
+
/***/ "e509":
|
|
31469
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
31470
|
+
|
|
31471
|
+
// extracted by mini-css-extract-plugin
|
|
31472
|
+
|
|
30595
31473
|
/***/ }),
|
|
30596
31474
|
|
|
30597
31475
|
/***/ "e6b9":
|
|
@@ -30612,12 +31490,23 @@ var uploadMixin = {
|
|
|
30612
31490
|
|
|
30613
31491
|
/***/ }),
|
|
30614
31492
|
|
|
30615
|
-
/***/ "
|
|
31493
|
+
/***/ "f17e":
|
|
31494
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
31495
|
+
|
|
31496
|
+
"use strict";
|
|
31497
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditor_vue_vue_type_style_index_0_id_aef207de_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9610");
|
|
31498
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditor_vue_vue_type_style_index_0_id_aef207de_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PremiumBblEditor_vue_vue_type_style_index_0_id_aef207de_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
31499
|
+
/* unused harmony reexport * */
|
|
31500
|
+
|
|
31501
|
+
|
|
31502
|
+
/***/ }),
|
|
31503
|
+
|
|
31504
|
+
/***/ "f27e":
|
|
30616
31505
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30617
31506
|
|
|
30618
31507
|
"use strict";
|
|
30619
|
-
/* harmony import */ var
|
|
30620
|
-
/* harmony import */ var
|
|
31508
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkModal_vue_vue_type_style_index_0_id_ad5f3080_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a407");
|
|
31509
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkModal_vue_vue_type_style_index_0_id_ad5f3080_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LinkModal_vue_vue_type_style_index_0_id_ad5f3080_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
30621
31510
|
/* unused harmony reexport * */
|
|
30622
31511
|
|
|
30623
31512
|
|
|
@@ -30950,15 +31839,15 @@ if (typeof window !== 'undefined') {
|
|
|
30950
31839
|
// EXTERNAL MODULE: ./src/components/PremiumBblEditor.vue + 4 modules
|
|
30951
31840
|
var PremiumBblEditor = __webpack_require__("2cce");
|
|
30952
31841
|
|
|
30953
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PremiumBblEditorOptionsAPI.vue?vue&type=template&id=
|
|
31842
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1a638e0e-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PremiumBblEditorOptionsAPI.vue?vue&type=template&id=fd2c025c&scoped=true
|
|
30954
31843
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"premium-editor-container",class:[
|
|
30955
31844
|
("theme-" + _vm.theme),
|
|
30956
31845
|
_vm.editorClass
|
|
30957
|
-
]},[(!_vm.isEditorReady && !_vm.editorError)?_c('div',{staticClass:"editor-loading"},[_c('div',{staticClass:"loading-spinner"}),_c('p',[_vm._v("Loading Premium Editor...")])]):_vm._e(),(_vm.editorError)?_c('div',{staticClass:"editor-error"},[_c('div',{staticClass:"error-icon"},[_vm._v("⚠️")]),_c('div',{staticClass:"error-content"},[_c('h3',[_vm._v("Editor Failed to Load")]),(_vm.missingDependencies.length > 0)?_c('div',{staticClass:"missing-deps"},[_vm._m(0),_c('ul',_vm._l((_vm.missingDependencies),function(dep){return _c('li',{key:dep},[_vm._v(_vm._s(dep))])}),0),_vm._m(1)]):_c('div',{staticClass:"generic-error"},[_c('p',[_vm._v(_vm._s(_vm.editorError))]),_c('p',[_vm._v("Please check the browser console for more details.")])]),_vm._m(2)])]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isEditorReady && !_vm.editorError),expression:"isEditorReady && !editorError"}],staticClass:"premium-editor-wrapper"},[(_vm.showToolbar)?_c('div',{staticClass:"premium-toolbar-container",class:_vm.toolbarClass},[(_vm.editor)?_c('ToolbarMain',{attrs:{"editor":_vm.editor,"config":_vm.toolbarConfig,"font-families":_vm.fontFamilies,"font-sizes":_vm.fontSizes,"line-heights":_vm.lineHeights,"allowed-headings":_vm.allowedHeadings,"source-code-mode":_vm.isSourceCodeMode},on:{"execute-command":_vm.executeCommand,"insert-link":_vm.openLinkModal,"insert-image":function($event){_vm.showImageModal = true},"insert-video":function($event){_vm.showVideoModal = true},"clear-formatting":_vm.clearFormatting,"toggle-source-code":_vm.toggleSourceCode}}):_c('div',{staticClass:"toolbar-loading"},[_c('div',{staticClass:"toolbar-loading-content"},[_c('div',{staticClass:"loading-spinner-small"}),_c('span',[_vm._v("Loading toolbar...")])])])],1):_vm._e(),_c('div',{staticClass:"premium-editor-content",class:_vm.contentClass,style:(_vm.contentStyles)},[_c('editor-content',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSourceCodeMode),expression:"!isSourceCodeMode"}],staticClass:"bbl-editor-area",style:(_vm.editorStyles),attrs:{"editor":_vm.editor}}),_c('textarea',{directives:[{name:"show",rawName:"v-show",value:(_vm.isSourceCodeMode),expression:"isSourceCodeMode"},{name:"model",rawName:"v-model",value:(_vm.sourceCode),expression:"sourceCode"}],staticClass:"source-code-editor",style:(_vm.editorStyles),attrs:{"spellcheck":_vm.spellcheck},domProps:{"value":(_vm.sourceCode)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.sourceCode=$event.target.value},_vm.updateFromSourceCode]}})],1),(_vm.showBubbleMenu && _vm.editor)?_c('EditorBubbleMenu',{attrs:{"editor":_vm.editor,"config":_vm.toolbarConfig},on:{"execute-command":_vm.executeCommand}}):_vm._e(),(_vm.showTableBubbleMenu && _vm.editor)?_c('TableBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e(),(_vm.showImageBubbleMenu && _vm.editor)?_c('ImageBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e(),(_vm.showVideoBubbleMenu && _vm.editor)?_c('VideoBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e()],1),_c('LinkModal',{attrs:{"visible":_vm.showLinkModal,"initial-text":_vm.linkModalData.text,"initial-url":_vm.linkModalData.url,"initial-target":_vm.linkModalData.target},on:{"close":function($event){_vm.showLinkModal = false},"insert":_vm.insertLink,"remove":_vm.removeLink}}),_c('ImageModal',{attrs:{"visible":_vm.showImageModal,"upload-handler":_vm.uploadHandler || _vm.defaultImageUpload,"upload-manager":_vm.uploadManager,"max-file-size":_vm.maxFileSize,"allowed-types":_vm.allowedImageTypes},on:{"close":function($event){_vm.showImageModal = false},"insert":_vm.insertImage}}),_c('VideoModal',{attrs:{"visible":_vm.showVideoModal,"upload-handler":_vm.uploadHandler || _vm.defaultVideoUpload,"upload-manager":_vm.uploadManager,"max-file-size":_vm.maxFileSize,"allowed-types":_vm.allowedVideoTypes},on:{"close":function($event){_vm.showVideoModal = false},"insert":_vm.insertVideo}})],1)}
|
|
31846
|
+
]},[(!_vm.isEditorReady && !_vm.editorError)?_c('div',{staticClass:"editor-loading"},[_c('div',{staticClass:"loading-spinner"}),_c('p',[_vm._v("Loading Premium Editor...")])]):_vm._e(),(_vm.editorError)?_c('div',{staticClass:"editor-error"},[_c('div',{staticClass:"error-icon"},[_vm._v("⚠️")]),_c('div',{staticClass:"error-content"},[_c('h3',[_vm._v("Editor Failed to Load")]),(_vm.missingDependencies.length > 0)?_c('div',{staticClass:"missing-deps"},[_vm._m(0),_c('ul',_vm._l((_vm.missingDependencies),function(dep){return _c('li',{key:dep},[_vm._v(_vm._s(dep))])}),0),_vm._m(1)]):_c('div',{staticClass:"generic-error"},[_c('p',[_vm._v(_vm._s(_vm.editorError))]),_c('p',[_vm._v("Please check the browser console for more details.")])]),_vm._m(2)])]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isEditorReady && !_vm.editorError),expression:"isEditorReady && !editorError"}],staticClass:"premium-editor-wrapper"},[(_vm.showToolbar)?_c('div',{staticClass:"premium-toolbar-container",class:_vm.toolbarClass},[(_vm.editor)?_c('ToolbarMain',{attrs:{"editor":_vm.editor,"config":_vm.toolbarConfig,"font-families":_vm.fontFamilies,"font-sizes":_vm.fontSizes,"line-heights":_vm.lineHeights,"allowed-headings":_vm.allowedHeadings,"source-code-mode":_vm.isSourceCodeMode},on:{"execute-command":_vm.executeCommand,"insert-link":_vm.openLinkModal,"insert-image":function($event){_vm.showImageModal = true},"insert-video":function($event){_vm.showVideoModal = true},"clear-formatting":_vm.clearFormatting,"toggle-source-code":_vm.toggleSourceCode}}):_c('div',{staticClass:"toolbar-loading"},[_c('div',{staticClass:"toolbar-loading-content"},[_c('div',{staticClass:"loading-spinner-small"}),_c('span',[_vm._v("Loading toolbar...")])])])],1):_vm._e(),_c('div',{staticClass:"premium-editor-content",class:_vm.contentClass,style:(_vm.contentStyles)},[_c('editor-content',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSourceCodeMode),expression:"!isSourceCodeMode"}],staticClass:"bbl-editor-area",style:(_vm.editorStyles),attrs:{"editor":_vm.editor}}),_c('textarea',{directives:[{name:"show",rawName:"v-show",value:(_vm.isSourceCodeMode),expression:"isSourceCodeMode"},{name:"model",rawName:"v-model",value:(_vm.sourceCode),expression:"sourceCode"}],staticClass:"source-code-editor",style:(_vm.editorStyles),attrs:{"spellcheck":_vm.spellcheck},domProps:{"value":(_vm.sourceCode)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.sourceCode=$event.target.value},_vm.updateFromSourceCode]}})],1),(_vm.showBubbleMenu && _vm.editor)?_c('EditorBubbleMenu',{attrs:{"editor":_vm.editor,"config":_vm.toolbarConfig},on:{"execute-command":_vm.executeCommand,"insert-link":_vm.openLinkModal}}):_vm._e(),(_vm.showTableBubbleMenu && _vm.editor)?_c('TableBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e(),(_vm.showImageBubbleMenu && _vm.editor)?_c('ImageBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e(),(_vm.showLinkBubbleMenu && _vm.editor)?_c('LinkBubbleMenu',{attrs:{"editor":_vm.editor},on:{"edit-link":_vm.openLinkModal}}):_vm._e(),(_vm.showVideoBubbleMenu && _vm.editor)?_c('VideoBubbleMenu',{attrs:{"editor":_vm.editor}}):_vm._e()],1),_c('LinkModal',{attrs:{"visible":_vm.showLinkModal,"initial-text":_vm.linkModalData.text,"initial-url":_vm.linkModalData.url,"initial-target":_vm.linkModalData.target},on:{"close":function($event){_vm.showLinkModal = false},"insert":_vm.insertLink,"remove":_vm.removeLink}}),_c('ImageModal',{attrs:{"visible":_vm.showImageModal,"upload-handler":_vm.uploadHandler || _vm.defaultImageUpload,"upload-manager":_vm.uploadManager,"max-file-size":_vm.maxFileSize,"allowed-types":_vm.allowedImageTypes},on:{"close":function($event){_vm.showImageModal = false},"insert":_vm.insertImage}}),_c('VideoModal',{attrs:{"visible":_vm.showVideoModal,"upload-handler":_vm.uploadHandler || _vm.defaultVideoUpload,"upload-manager":_vm.uploadManager,"max-file-size":_vm.maxFileSize,"allowed-types":_vm.allowedVideoTypes},on:{"close":function($event){_vm.showVideoModal = false},"insert":_vm.insertVideo}})],1)}
|
|
30958
31847
|
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_c('strong',[_vm._v("Missing Dependencies:")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"install-command"},[_c('p',[_c('strong',[_vm._v("Quick Fix:")])]),_c('code',[_vm._v("npm install @vue/composition-api @tiptap/core @tiptap/vue-2 @tiptap/starter-kit @tiptap/extension-text-style @tiptap/extension-color @tiptap/extension-highlight @tiptap/extension-underline @tiptap/extension-text-align @tiptap/extension-link @tiptap/extension-font-family @tiptap/extension-code @tiptap/extension-code-block @tiptap/extension-table @tiptap/extension-table-row @tiptap/extension-table-cell @tiptap/extension-table-header @tiptap/extension-task-list @tiptap/extension-task-item @tiptap/extension-placeholder")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"help-links"},[_c('a',{attrs:{"href":"https://github.com/kazi-shahin/vue2-bbl-editor#quick-setup","target":"_blank"}},[_vm._v("📖 Setup Guide")]),_c('a',{attrs:{"href":"https://github.com/kazi-shahin/vue2-bbl-editor/blob/main/TROUBLESHOOTING.md","target":"_blank"}},[_vm._v("🔧 Troubleshooting")])])}]
|
|
30959
31848
|
|
|
30960
31849
|
|
|
30961
|
-
// CONCATENATED MODULE: ./src/components/PremiumBblEditorOptionsAPI.vue?vue&type=template&id=
|
|
31850
|
+
// CONCATENATED MODULE: ./src/components/PremiumBblEditorOptionsAPI.vue?vue&type=template&id=fd2c025c&scoped=true
|
|
30962
31851
|
|
|
30963
31852
|
// EXTERNAL MODULE: external "@tiptap/vue-2"
|
|
30964
31853
|
var vue_2_ = __webpack_require__("9637");
|
|
@@ -31054,6 +31943,9 @@ var TableBubbleMenu = __webpack_require__("521c");
|
|
|
31054
31943
|
// EXTERNAL MODULE: ./src/components/Menus/ImageBubbleMenu.vue + 4 modules
|
|
31055
31944
|
var ImageBubbleMenu = __webpack_require__("af21");
|
|
31056
31945
|
|
|
31946
|
+
// EXTERNAL MODULE: ./src/components/Menus/LinkBubbleMenu.vue + 4 modules
|
|
31947
|
+
var LinkBubbleMenu = __webpack_require__("215c");
|
|
31948
|
+
|
|
31057
31949
|
// EXTERNAL MODULE: ./src/components/Menus/VideoBubbleMenu.vue + 4 modules
|
|
31058
31950
|
var VideoBubbleMenu = __webpack_require__("85d2");
|
|
31059
31951
|
|
|
@@ -31281,6 +32173,14 @@ function _toPrimitive(t, r) {
|
|
|
31281
32173
|
//
|
|
31282
32174
|
//
|
|
31283
32175
|
//
|
|
32176
|
+
//
|
|
32177
|
+
//
|
|
32178
|
+
//
|
|
32179
|
+
//
|
|
32180
|
+
//
|
|
32181
|
+
//
|
|
32182
|
+
//
|
|
32183
|
+
|
|
31284
32184
|
|
|
31285
32185
|
|
|
31286
32186
|
|
|
@@ -31453,6 +32353,7 @@ var LineHeight = core_["Extension"].create({
|
|
|
31453
32353
|
EditorBubbleMenu: BubbleMenu["a" /* default */],
|
|
31454
32354
|
TableBubbleMenu: TableBubbleMenu["a" /* default */],
|
|
31455
32355
|
ImageBubbleMenu: ImageBubbleMenu["a" /* default */],
|
|
32356
|
+
LinkBubbleMenu: LinkBubbleMenu["a" /* default */],
|
|
31456
32357
|
VideoBubbleMenu: VideoBubbleMenu["a" /* default */],
|
|
31457
32358
|
ImageModal: ImageModal["a" /* default */],
|
|
31458
32359
|
VideoModal: VideoModal["a" /* default */],
|
|
@@ -31512,6 +32413,10 @@ var LineHeight = core_["Extension"].create({
|
|
|
31512
32413
|
type: Boolean,
|
|
31513
32414
|
default: true
|
|
31514
32415
|
},
|
|
32416
|
+
showLinkBubbleMenu: {
|
|
32417
|
+
type: Boolean,
|
|
32418
|
+
default: true
|
|
32419
|
+
},
|
|
31515
32420
|
showVideoBubbleMenu: {
|
|
31516
32421
|
type: Boolean,
|
|
31517
32422
|
default: true
|
|
@@ -32687,8 +33592,8 @@ var LineHeight = core_["Extension"].create({
|
|
|
32687
33592
|
});
|
|
32688
33593
|
// CONCATENATED MODULE: ./src/components/PremiumBblEditorOptionsAPI.vue?vue&type=script&lang=js
|
|
32689
33594
|
/* harmony default export */ var components_PremiumBblEditorOptionsAPIvue_type_script_lang_js = (PremiumBblEditorOptionsAPIvue_type_script_lang_js);
|
|
32690
|
-
// EXTERNAL MODULE: ./src/components/PremiumBblEditorOptionsAPI.vue?vue&type=style&index=0&id=
|
|
32691
|
-
var
|
|
33595
|
+
// EXTERNAL MODULE: ./src/components/PremiumBblEditorOptionsAPI.vue?vue&type=style&index=0&id=fd2c025c&prod&scoped=true&lang=css
|
|
33596
|
+
var PremiumBblEditorOptionsAPIvue_type_style_index_0_id_fd2c025c_prod_scoped_true_lang_css = __webpack_require__("c0c0");
|
|
32692
33597
|
|
|
32693
33598
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
32694
33599
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -32708,7 +33613,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
32708
33613
|
staticRenderFns,
|
|
32709
33614
|
false,
|
|
32710
33615
|
null,
|
|
32711
|
-
"
|
|
33616
|
+
"fd2c025c",
|
|
32712
33617
|
null
|
|
32713
33618
|
|
|
32714
33619
|
)
|