@halo-dev/richtext-editor 0.0.0-alpha.14 → 0.0.0-alpha.16
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/extensions/commands-menu/suggestion.d.ts +6 -1
- package/dist/extensions/index.d.ts +2 -1
- package/dist/menus/index.d.ts +6 -1
- package/dist/rich-text-editor.es.js +671 -279
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +670 -278
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +11 -4
- package/package.json +2 -1
|
@@ -4006,14 +4006,14 @@ var RichTextEditor = function(exports, vue) {
|
|
|
4006
4006
|
return (this.updated & UPDATED_SCROLL) > 0;
|
|
4007
4007
|
}
|
|
4008
4008
|
}
|
|
4009
|
-
function bind(f, self2) {
|
|
4009
|
+
function bind$1(f, self2) {
|
|
4010
4010
|
return !self2 || !f ? f : f.bind(self2);
|
|
4011
4011
|
}
|
|
4012
4012
|
class FieldDesc {
|
|
4013
4013
|
constructor(name, desc, self2) {
|
|
4014
4014
|
this.name = name;
|
|
4015
|
-
this.init = bind(desc.init, self2);
|
|
4016
|
-
this.apply = bind(desc.apply, self2);
|
|
4015
|
+
this.init = bind$1(desc.init, self2);
|
|
4016
|
+
this.apply = bind$1(desc.apply, self2);
|
|
4017
4017
|
}
|
|
4018
4018
|
}
|
|
4019
4019
|
const baseFields = [
|
|
@@ -16070,7 +16070,7 @@ img.ProseMirror-separator {
|
|
|
16070
16070
|
})
|
|
16071
16071
|
};
|
|
16072
16072
|
}
|
|
16073
|
-
function render$
|
|
16073
|
+
function render$F(instance) {
|
|
16074
16074
|
var popper2 = div();
|
|
16075
16075
|
var box = div();
|
|
16076
16076
|
box.className = BOX_CLASS;
|
|
@@ -16125,7 +16125,7 @@ img.ProseMirror-separator {
|
|
|
16125
16125
|
onUpdate
|
|
16126
16126
|
};
|
|
16127
16127
|
}
|
|
16128
|
-
render$
|
|
16128
|
+
render$F.$$tippy = true;
|
|
16129
16129
|
var idCounter = 1;
|
|
16130
16130
|
var mouseMoveListeners = [];
|
|
16131
16131
|
var mountedInstances = [];
|
|
@@ -16898,7 +16898,7 @@ img.ProseMirror-separator {
|
|
|
16898
16898
|
}
|
|
16899
16899
|
});
|
|
16900
16900
|
tippy.setDefaultProps({
|
|
16901
|
-
render: render$
|
|
16901
|
+
render: render$F
|
|
16902
16902
|
});
|
|
16903
16903
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
16904
16904
|
function isObject$2(value) {
|
|
@@ -20121,10 +20121,10 @@ img.ProseMirror-separator {
|
|
|
20121
20121
|
tabindex: "-1"
|
|
20122
20122
|
};
|
|
20123
20123
|
vue.popScopeId();
|
|
20124
|
-
const render$
|
|
20124
|
+
const render$E = /* @__PURE__ */ _withId((_ctx, _cache, $props, $setup, $data, $options) => {
|
|
20125
20125
|
return vue.openBlock(), vue.createBlock("div", _hoisted_1$2$1);
|
|
20126
20126
|
});
|
|
20127
|
-
script.render = render$
|
|
20127
|
+
script.render = render$E;
|
|
20128
20128
|
script.__scopeId = "data-v-b329ee4c";
|
|
20129
20129
|
script.__file = "src/components/ResizeObserver.vue";
|
|
20130
20130
|
var PrivateThemeClass = (prop = "theme") => ({
|
|
@@ -20171,10 +20171,10 @@ img.ProseMirror-separator {
|
|
|
20171
20171
|
ref: "inner",
|
|
20172
20172
|
class: "v-popper__inner"
|
|
20173
20173
|
};
|
|
20174
|
-
const _hoisted_3$
|
|
20174
|
+
const _hoisted_3$J = /* @__PURE__ */ vue.createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
|
|
20175
20175
|
const _hoisted_4$2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
|
|
20176
|
-
const _hoisted_5$
|
|
20177
|
-
_hoisted_3$
|
|
20176
|
+
const _hoisted_5$2 = [
|
|
20177
|
+
_hoisted_3$J,
|
|
20178
20178
|
_hoisted_4$2
|
|
20179
20179
|
];
|
|
20180
20180
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -20234,7 +20234,7 @@ img.ProseMirror-separator {
|
|
|
20234
20234
|
left: _ctx.toPx(_ctx.result.arrow.x),
|
|
20235
20235
|
top: _ctx.toPx(_ctx.result.arrow.y)
|
|
20236
20236
|
} : void 0)
|
|
20237
|
-
}, _hoisted_5$
|
|
20237
|
+
}, _hoisted_5$2, 4)
|
|
20238
20238
|
], 4)
|
|
20239
20239
|
], 46, _hoisted_1$1$1);
|
|
20240
20240
|
}
|
|
@@ -20352,7 +20352,7 @@ img.ProseMirror-separator {
|
|
|
20352
20352
|
name: "VTooltip",
|
|
20353
20353
|
vPopperTheme: "tooltip"
|
|
20354
20354
|
}));
|
|
20355
|
-
vue.defineComponent({
|
|
20355
|
+
const _sfc_main$7 = vue.defineComponent({
|
|
20356
20356
|
name: "VTooltipDirective",
|
|
20357
20357
|
components: {
|
|
20358
20358
|
Popper: PrivatePopper(),
|
|
@@ -20443,11 +20443,202 @@ img.ProseMirror-separator {
|
|
|
20443
20443
|
}
|
|
20444
20444
|
}
|
|
20445
20445
|
});
|
|
20446
|
+
const _hoisted_1$L = ["innerHTML"];
|
|
20447
|
+
const _hoisted_2$K = ["textContent"];
|
|
20448
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20449
|
+
const _component_PopperContent = vue.resolveComponent("PopperContent");
|
|
20450
|
+
const _component_Popper = vue.resolveComponent("Popper");
|
|
20451
|
+
return vue.openBlock(), vue.createBlock(_component_Popper, vue.mergeProps({ ref: "popper" }, _ctx.$attrs, {
|
|
20452
|
+
theme: _ctx.theme,
|
|
20453
|
+
"popper-node": () => _ctx.$refs.popperContent.$el,
|
|
20454
|
+
onApplyShow: _ctx.onShow,
|
|
20455
|
+
onApplyHide: _ctx.onHide
|
|
20456
|
+
}), {
|
|
20457
|
+
default: vue.withCtx(({
|
|
20458
|
+
popperId,
|
|
20459
|
+
isShown,
|
|
20460
|
+
shouldMountContent,
|
|
20461
|
+
skipTransition,
|
|
20462
|
+
autoHide,
|
|
20463
|
+
hide: hide2,
|
|
20464
|
+
handleResize,
|
|
20465
|
+
onResize,
|
|
20466
|
+
classes,
|
|
20467
|
+
result
|
|
20468
|
+
}) => [
|
|
20469
|
+
vue.createVNode(_component_PopperContent, {
|
|
20470
|
+
ref: "popperContent",
|
|
20471
|
+
class: vue.normalizeClass({
|
|
20472
|
+
"v-popper--tooltip-loading": _ctx.loading
|
|
20473
|
+
}),
|
|
20474
|
+
"popper-id": popperId,
|
|
20475
|
+
theme: _ctx.theme,
|
|
20476
|
+
shown: isShown,
|
|
20477
|
+
mounted: shouldMountContent,
|
|
20478
|
+
"skip-transition": skipTransition,
|
|
20479
|
+
"auto-hide": autoHide,
|
|
20480
|
+
"handle-resize": handleResize,
|
|
20481
|
+
classes,
|
|
20482
|
+
result,
|
|
20483
|
+
onHide: hide2,
|
|
20484
|
+
onResize
|
|
20485
|
+
}, {
|
|
20486
|
+
default: vue.withCtx(() => [
|
|
20487
|
+
_ctx.html ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
20488
|
+
key: 0,
|
|
20489
|
+
innerHTML: _ctx.finalContent
|
|
20490
|
+
}, null, 8, _hoisted_1$L)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
20491
|
+
key: 1,
|
|
20492
|
+
textContent: vue.toDisplayString(_ctx.finalContent)
|
|
20493
|
+
}, null, 8, _hoisted_2$K))
|
|
20494
|
+
]),
|
|
20495
|
+
_: 2
|
|
20496
|
+
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
20497
|
+
]),
|
|
20498
|
+
_: 1
|
|
20499
|
+
}, 16, ["theme", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
20500
|
+
}
|
|
20501
|
+
var PrivateTooltipDirective = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]);
|
|
20502
|
+
const TARGET_CLASS = "v-popper--has-tooltip";
|
|
20503
|
+
function getPlacement(options2, modifiers2) {
|
|
20504
|
+
let result = options2.placement;
|
|
20505
|
+
if (!result && modifiers2) {
|
|
20506
|
+
for (const pos of placements) {
|
|
20507
|
+
if (modifiers2[pos]) {
|
|
20508
|
+
result = pos;
|
|
20509
|
+
}
|
|
20510
|
+
}
|
|
20511
|
+
}
|
|
20512
|
+
if (!result) {
|
|
20513
|
+
result = getDefaultConfig(options2.theme || "tooltip", "placement");
|
|
20514
|
+
}
|
|
20515
|
+
return result;
|
|
20516
|
+
}
|
|
20517
|
+
function getOptions(el, value, modifiers2) {
|
|
20518
|
+
let options2;
|
|
20519
|
+
const type = typeof value;
|
|
20520
|
+
if (type === "string") {
|
|
20521
|
+
options2 = { content: value };
|
|
20522
|
+
} else if (value && type === "object") {
|
|
20523
|
+
options2 = value;
|
|
20524
|
+
} else {
|
|
20525
|
+
options2 = { content: false };
|
|
20526
|
+
}
|
|
20527
|
+
options2.placement = getPlacement(options2, modifiers2);
|
|
20528
|
+
options2.targetNodes = () => [el];
|
|
20529
|
+
options2.referenceNode = () => el;
|
|
20530
|
+
return options2;
|
|
20531
|
+
}
|
|
20532
|
+
let directiveApp;
|
|
20533
|
+
let directives;
|
|
20534
|
+
let uid = 0;
|
|
20535
|
+
function ensureDirectiveApp() {
|
|
20536
|
+
if (directiveApp)
|
|
20537
|
+
return;
|
|
20538
|
+
directives = vue.ref([]);
|
|
20539
|
+
directiveApp = vue.createApp({
|
|
20540
|
+
name: "VTooltipDirectiveApp",
|
|
20541
|
+
setup() {
|
|
20542
|
+
return {
|
|
20543
|
+
directives
|
|
20544
|
+
};
|
|
20545
|
+
},
|
|
20546
|
+
render() {
|
|
20547
|
+
return this.directives.map((directive) => {
|
|
20548
|
+
return vue.h(PrivateTooltipDirective, __spreadProps(__spreadValues$1({}, directive.options), {
|
|
20549
|
+
shown: directive.shown || directive.options.shown,
|
|
20550
|
+
key: directive.id
|
|
20551
|
+
}));
|
|
20552
|
+
});
|
|
20553
|
+
},
|
|
20554
|
+
devtools: {
|
|
20555
|
+
hide: true
|
|
20556
|
+
}
|
|
20557
|
+
});
|
|
20558
|
+
const mountTarget = document.createElement("div");
|
|
20559
|
+
document.body.appendChild(mountTarget);
|
|
20560
|
+
directiveApp.mount(mountTarget);
|
|
20561
|
+
}
|
|
20562
|
+
function createTooltip(el, value, modifiers2) {
|
|
20563
|
+
ensureDirectiveApp();
|
|
20564
|
+
const options2 = vue.ref(getOptions(el, value, modifiers2));
|
|
20565
|
+
const shown = vue.ref(false);
|
|
20566
|
+
const item = {
|
|
20567
|
+
id: uid++,
|
|
20568
|
+
options: options2,
|
|
20569
|
+
shown
|
|
20570
|
+
};
|
|
20571
|
+
directives.value.push(item);
|
|
20572
|
+
if (el.classList) {
|
|
20573
|
+
el.classList.add(TARGET_CLASS);
|
|
20574
|
+
}
|
|
20575
|
+
const result = el.$_popper = {
|
|
20576
|
+
options: options2,
|
|
20577
|
+
item,
|
|
20578
|
+
show() {
|
|
20579
|
+
shown.value = true;
|
|
20580
|
+
},
|
|
20581
|
+
hide() {
|
|
20582
|
+
shown.value = false;
|
|
20583
|
+
}
|
|
20584
|
+
};
|
|
20585
|
+
return result;
|
|
20586
|
+
}
|
|
20587
|
+
function destroyTooltip(el) {
|
|
20588
|
+
if (el.$_popper) {
|
|
20589
|
+
const index2 = directives.value.indexOf(el.$_popper.item);
|
|
20590
|
+
if (index2 !== -1)
|
|
20591
|
+
directives.value.splice(index2, 1);
|
|
20592
|
+
delete el.$_popper;
|
|
20593
|
+
delete el.$_popperOldShown;
|
|
20594
|
+
delete el.$_popperMountTarget;
|
|
20595
|
+
}
|
|
20596
|
+
if (el.classList) {
|
|
20597
|
+
el.classList.remove(TARGET_CLASS);
|
|
20598
|
+
}
|
|
20599
|
+
}
|
|
20600
|
+
function bind(el, { value, modifiers: modifiers2 }) {
|
|
20601
|
+
const options2 = getOptions(el, value, modifiers2);
|
|
20602
|
+
if (!options2.content || getDefaultConfig(options2.theme || "tooltip", "disabled")) {
|
|
20603
|
+
destroyTooltip(el);
|
|
20604
|
+
} else {
|
|
20605
|
+
let directive;
|
|
20606
|
+
if (el.$_popper) {
|
|
20607
|
+
directive = el.$_popper;
|
|
20608
|
+
directive.options.value = options2;
|
|
20609
|
+
} else {
|
|
20610
|
+
directive = createTooltip(el, value, modifiers2);
|
|
20611
|
+
}
|
|
20612
|
+
if (typeof value.shown !== "undefined" && value.shown !== el.$_popperOldShown) {
|
|
20613
|
+
el.$_popperOldShown = value.shown;
|
|
20614
|
+
value.shown ? directive.show() : directive.hide();
|
|
20615
|
+
}
|
|
20616
|
+
}
|
|
20617
|
+
}
|
|
20618
|
+
var PrivateVTooltip = {
|
|
20619
|
+
beforeMount: bind,
|
|
20620
|
+
updated: bind,
|
|
20621
|
+
beforeUnmount(el) {
|
|
20622
|
+
destroyTooltip(el);
|
|
20623
|
+
}
|
|
20624
|
+
};
|
|
20625
|
+
const VTooltip = PrivateVTooltip;
|
|
20446
20626
|
const Menu = _sfc_main$2$1;
|
|
20447
|
-
const _hoisted_1$
|
|
20448
|
-
const _hoisted_2$
|
|
20449
|
-
|
|
20450
|
-
|
|
20627
|
+
const _hoisted_1$K = { class: "editor-header flex items-center py-1 space-x-0.5 justify-center border-b drop-shadow-sm bg-white" };
|
|
20628
|
+
const _hoisted_2$J = {
|
|
20629
|
+
key: 0,
|
|
20630
|
+
class: "px-1"
|
|
20631
|
+
};
|
|
20632
|
+
const _hoisted_3$I = /* @__PURE__ */ vue.createElementVNode("div", {
|
|
20633
|
+
class: "h-5 bg-gray-100",
|
|
20634
|
+
style: { "width": "1px" }
|
|
20635
|
+
}, null, -1);
|
|
20636
|
+
const _hoisted_4$1 = [
|
|
20637
|
+
_hoisted_3$I
|
|
20638
|
+
];
|
|
20639
|
+
const _hoisted_5$1 = ["onClick"];
|
|
20640
|
+
const _hoisted_6$1 = { class: "relative rounded-md bg-white overflow-hidden drop-shadow w-48 p-1 max-h-72 overflow-y-auto" };
|
|
20641
|
+
const _hoisted_7 = ["onClick"];
|
|
20451
20642
|
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
20452
20643
|
__name: "EditorHeader",
|
|
20453
20644
|
props: {
|
|
@@ -20459,54 +20650,58 @@ img.ProseMirror-separator {
|
|
|
20459
20650
|
},
|
|
20460
20651
|
setup(__props) {
|
|
20461
20652
|
return (_ctx, _cache) => {
|
|
20462
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20653
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
|
|
20463
20654
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.menuItems, (menuItem, index2) => {
|
|
20464
20655
|
var _a2, _b;
|
|
20465
20656
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20466
20657
|
key: index2,
|
|
20467
20658
|
class: "inline-flex items-center justify-center"
|
|
20468
20659
|
}, [
|
|
20469
|
-
|
|
20470
|
-
|
|
20471
|
-
|
|
20472
|
-
|
|
20473
|
-
|
|
20474
|
-
|
|
20475
|
-
|
|
20476
|
-
|
|
20477
|
-
|
|
20478
|
-
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20660
|
+
menuItem.type === "separator" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$J, _hoisted_4$1)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
20661
|
+
!((_a2 = menuItem.children) == null ? void 0 : _a2.length) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
|
|
20662
|
+
key: 0,
|
|
20663
|
+
class: vue.normalizeClass([{ "bg-gray-200": (_b = menuItem.isActive) == null ? void 0 : _b.call(menuItem) }, "hover:bg-gray-100 p-1 rounded-sm"]),
|
|
20664
|
+
onClick: menuItem.action
|
|
20665
|
+
}, [
|
|
20666
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(menuItem.icon)))
|
|
20667
|
+
], 10, _hoisted_5$1)), [
|
|
20668
|
+
[vue.unref(VTooltip), menuItem.title]
|
|
20669
|
+
]) : (vue.openBlock(), vue.createBlock(vue.unref(Menu), {
|
|
20670
|
+
key: 1,
|
|
20671
|
+
class: "inline-flex"
|
|
20672
|
+
}, {
|
|
20673
|
+
popper: vue.withCtx(() => [
|
|
20674
|
+
vue.createElementVNode("div", _hoisted_6$1, [
|
|
20675
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(menuItem.children, (child, childIndex) => {
|
|
20676
|
+
var _a3, _b2, _c;
|
|
20677
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20678
|
+
key: childIndex,
|
|
20679
|
+
class: vue.normalizeClass([{ "!bg-gray-100": (_a3 = child.isActive) == null ? void 0 : _a3.call(child) }, "flex flex-row items-center rounded gap-4 p-1 hover:bg-gray-100 group cursor-pointer"]),
|
|
20680
|
+
onClick: child.action
|
|
20681
|
+
}, [
|
|
20682
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(child.icon), {
|
|
20683
|
+
class: vue.normalizeClass(["bg-gray-100 p-1 rounded w-6 h-6 group-hover:bg-white", { "!bg-white": (_b2 = child.isActive) == null ? void 0 : _b2.call(child) }])
|
|
20684
|
+
}, null, 8, ["class"])),
|
|
20685
|
+
vue.createElementVNode("span", {
|
|
20686
|
+
class: vue.normalizeClass(["text-xs text-gray-600 group-hover:text-gray-900 group-hover:font-medium", { "!text-gray-900 !font-medium": (_c = child.isActive) == null ? void 0 : _c.call(child) }])
|
|
20687
|
+
}, vue.toDisplayString(child.title), 3)
|
|
20688
|
+
], 10, _hoisted_7);
|
|
20689
|
+
}), 128))
|
|
20690
|
+
])
|
|
20691
|
+
]),
|
|
20692
|
+
default: vue.withCtx(() => {
|
|
20693
|
+
var _a3;
|
|
20694
|
+
return [
|
|
20695
|
+
vue.createElementVNode("button", {
|
|
20696
|
+
class: vue.normalizeClass([{ "bg-gray-200": (_a3 = menuItem.isActive) == null ? void 0 : _a3.call(menuItem) }, "hover:bg-gray-100 p-1 rounded-sm"])
|
|
20487
20697
|
}, [
|
|
20488
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
}), 128))
|
|
20496
|
-
])
|
|
20497
|
-
]),
|
|
20498
|
-
default: vue.withCtx(() => {
|
|
20499
|
-
var _a3;
|
|
20500
|
-
return [
|
|
20501
|
-
vue.createElementVNode("button", {
|
|
20502
|
-
class: vue.normalizeClass([{ "bg-gray-200": (_a3 = menuItem.isActive) == null ? void 0 : _a3.call(menuItem) }, "hover:bg-gray-100 p-1 rounded-sm"])
|
|
20503
|
-
}, [
|
|
20504
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(menuItem.icon)))
|
|
20505
|
-
], 2)
|
|
20506
|
-
];
|
|
20507
|
-
}),
|
|
20508
|
-
_: 2
|
|
20509
|
-
}, 1024))
|
|
20698
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(menuItem.icon)))
|
|
20699
|
+
], 2)
|
|
20700
|
+
];
|
|
20701
|
+
}),
|
|
20702
|
+
_: 2
|
|
20703
|
+
}, 1024))
|
|
20704
|
+
], 64))
|
|
20510
20705
|
]);
|
|
20511
20706
|
}), 128))
|
|
20512
20707
|
]);
|
|
@@ -20514,8 +20709,8 @@ img.ProseMirror-separator {
|
|
|
20514
20709
|
}
|
|
20515
20710
|
});
|
|
20516
20711
|
const svgArrow = "";
|
|
20517
|
-
const _hoisted_1$
|
|
20518
|
-
const _hoisted_2$
|
|
20712
|
+
const _hoisted_1$J = { class: "bg-white flex items-center rounded p-1 border drop-shadow space-x-0.5" };
|
|
20713
|
+
const _hoisted_2$I = ["title", "onClick"];
|
|
20519
20714
|
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
20520
20715
|
__name: "EditorBubbleMenu",
|
|
20521
20716
|
props: {
|
|
@@ -20536,7 +20731,7 @@ img.ProseMirror-separator {
|
|
|
20536
20731
|
"tippy-options": { duration: 100, arrow: vue.unref(ROUND_ARROW), maxWidth: "100%" }
|
|
20537
20732
|
}, {
|
|
20538
20733
|
default: vue.withCtx(() => [
|
|
20539
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
20734
|
+
vue.createElementVNode("div", _hoisted_1$J, [
|
|
20540
20735
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.menuItems, (menuItem, index2) => {
|
|
20541
20736
|
var _a2;
|
|
20542
20737
|
return vue.openBlock(), vue.createElementBlock("button", {
|
|
@@ -20548,8 +20743,10 @@ img.ProseMirror-separator {
|
|
|
20548
20743
|
return (_a3 = menuItem.action) == null ? void 0 : _a3.call(menuItem);
|
|
20549
20744
|
}
|
|
20550
20745
|
}, [
|
|
20551
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(menuItem.icon)))
|
|
20552
|
-
|
|
20746
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(menuItem.icon), null, null, 512)), [
|
|
20747
|
+
[vue.unref(VTooltip), menuItem.title]
|
|
20748
|
+
])
|
|
20749
|
+
], 10, _hoisted_2$I);
|
|
20553
20750
|
}), 128))
|
|
20554
20751
|
])
|
|
20555
20752
|
]),
|
|
@@ -20558,12 +20755,12 @@ img.ProseMirror-separator {
|
|
|
20558
20755
|
};
|
|
20559
20756
|
}
|
|
20560
20757
|
});
|
|
20561
|
-
const _hoisted_1$
|
|
20758
|
+
const _hoisted_1$I = {
|
|
20562
20759
|
key: 0,
|
|
20563
20760
|
class: "halo-rich-text-editor"
|
|
20564
20761
|
};
|
|
20565
|
-
const _hoisted_2$
|
|
20566
|
-
const _hoisted_3$
|
|
20762
|
+
const _hoisted_2$H = { class: "h-full flex flex-row w-full" };
|
|
20763
|
+
const _hoisted_3$H = { class: "h-full" };
|
|
20567
20764
|
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
20568
20765
|
__name: "Editor",
|
|
20569
20766
|
props: {
|
|
@@ -20585,22 +20782,28 @@ img.ProseMirror-separator {
|
|
|
20585
20782
|
type: Array,
|
|
20586
20783
|
required: false,
|
|
20587
20784
|
default: () => []
|
|
20785
|
+
},
|
|
20786
|
+
contentStyles: {
|
|
20787
|
+
type: Object,
|
|
20788
|
+
required: false,
|
|
20789
|
+
default: () => ({})
|
|
20588
20790
|
}
|
|
20589
20791
|
},
|
|
20590
20792
|
setup(__props) {
|
|
20591
20793
|
return (_ctx, _cache) => {
|
|
20592
|
-
return __props.editor ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20794
|
+
return __props.editor ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
|
|
20593
20795
|
vue.createVNode(_sfc_main$5, {
|
|
20594
20796
|
editor: __props.editor,
|
|
20595
20797
|
"menu-items": __props.bubbleMenuItems
|
|
20596
20798
|
}, null, 8, ["editor", "menu-items"]),
|
|
20597
20799
|
vue.createVNode(_sfc_main$6, { "menu-items": __props.toolbarMenuItems }, null, 8, ["menu-items"]),
|
|
20598
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
20800
|
+
vue.createElementVNode("div", _hoisted_2$H, [
|
|
20599
20801
|
vue.createVNode(vue.unref(EditorContent), {
|
|
20600
20802
|
editor: __props.editor,
|
|
20803
|
+
style: vue.normalizeStyle(__props.contentStyles),
|
|
20601
20804
|
class: "editor-content prose prose-base !max-w-none prose-pre:p-0 bg-white prose-p:mt-3 prose-p:mb-3 prose-img:mt-0 prose-img:mb-0"
|
|
20602
|
-
}, null, 8, ["editor"]),
|
|
20603
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
20805
|
+
}, null, 8, ["editor", "style"]),
|
|
20806
|
+
vue.createElementVNode("div", _hoisted_3$H, [
|
|
20604
20807
|
vue.renderSlot(_ctx.$slots, "extra")
|
|
20605
20808
|
])
|
|
20606
20809
|
])
|
|
@@ -20612,7 +20815,7 @@ img.ProseMirror-separator {
|
|
|
20612
20815
|
const tailwind = "";
|
|
20613
20816
|
const style = "";
|
|
20614
20817
|
const githubDark = "";
|
|
20615
|
-
const inputRegex$
|
|
20818
|
+
const inputRegex$7 = /^\s*>\s$/;
|
|
20616
20819
|
const Blockquote = Node.create({
|
|
20617
20820
|
name: "blockquote",
|
|
20618
20821
|
addOptions() {
|
|
@@ -20652,7 +20855,7 @@ img.ProseMirror-separator {
|
|
|
20652
20855
|
addInputRules() {
|
|
20653
20856
|
return [
|
|
20654
20857
|
wrappingInputRule({
|
|
20655
|
-
find: inputRegex$
|
|
20858
|
+
find: inputRegex$7,
|
|
20656
20859
|
type: this.type
|
|
20657
20860
|
})
|
|
20658
20861
|
];
|
|
@@ -20731,7 +20934,7 @@ img.ProseMirror-separator {
|
|
|
20731
20934
|
];
|
|
20732
20935
|
}
|
|
20733
20936
|
});
|
|
20734
|
-
const inputRegex$
|
|
20937
|
+
const inputRegex$6 = /^\s*([-+*])\s$/;
|
|
20735
20938
|
const BulletList = Node.create({
|
|
20736
20939
|
name: "bulletList",
|
|
20737
20940
|
addOptions() {
|
|
@@ -20767,14 +20970,14 @@ img.ProseMirror-separator {
|
|
|
20767
20970
|
addInputRules() {
|
|
20768
20971
|
return [
|
|
20769
20972
|
wrappingInputRule({
|
|
20770
|
-
find: inputRegex$
|
|
20973
|
+
find: inputRegex$6,
|
|
20771
20974
|
type: this.type
|
|
20772
20975
|
})
|
|
20773
20976
|
];
|
|
20774
20977
|
}
|
|
20775
20978
|
});
|
|
20776
|
-
const inputRegex$
|
|
20777
|
-
const pasteRegex$
|
|
20979
|
+
const inputRegex$5 = /(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;
|
|
20980
|
+
const pasteRegex$2 = /(?:^|\s)((?:`)((?:[^`]+))(?:`))/g;
|
|
20778
20981
|
const Code = Mark.create({
|
|
20779
20982
|
name: "code",
|
|
20780
20983
|
addOptions() {
|
|
@@ -20814,7 +21017,7 @@ img.ProseMirror-separator {
|
|
|
20814
21017
|
addInputRules() {
|
|
20815
21018
|
return [
|
|
20816
21019
|
markInputRule({
|
|
20817
|
-
find: inputRegex$
|
|
21020
|
+
find: inputRegex$5,
|
|
20818
21021
|
type: this.type
|
|
20819
21022
|
})
|
|
20820
21023
|
];
|
|
@@ -20822,7 +21025,7 @@ img.ProseMirror-separator {
|
|
|
20822
21025
|
addPasteRules() {
|
|
20823
21026
|
return [
|
|
20824
21027
|
markPasteRule({
|
|
20825
|
-
find: pasteRegex$
|
|
21028
|
+
find: pasteRegex$2,
|
|
20826
21029
|
type: this.type
|
|
20827
21030
|
})
|
|
20828
21031
|
];
|
|
@@ -23802,7 +24005,7 @@ img.ProseMirror-separator {
|
|
|
23802
24005
|
};
|
|
23803
24006
|
}
|
|
23804
24007
|
});
|
|
23805
|
-
const inputRegex$
|
|
24008
|
+
const inputRegex$4 = /^(\d+)\.\s$/;
|
|
23806
24009
|
const OrderedList = Node.create({
|
|
23807
24010
|
name: "orderedList",
|
|
23808
24011
|
addOptions() {
|
|
@@ -23851,7 +24054,7 @@ img.ProseMirror-separator {
|
|
|
23851
24054
|
addInputRules() {
|
|
23852
24055
|
return [
|
|
23853
24056
|
wrappingInputRule({
|
|
23854
|
-
find: inputRegex$
|
|
24057
|
+
find: inputRegex$4,
|
|
23855
24058
|
type: this.type,
|
|
23856
24059
|
getAttributes: (match) => ({ start: +match[1] }),
|
|
23857
24060
|
joinPredicate: (match, node) => node.childCount + node.attrs.start === +match[1]
|
|
@@ -23890,8 +24093,8 @@ img.ProseMirror-separator {
|
|
|
23890
24093
|
};
|
|
23891
24094
|
}
|
|
23892
24095
|
});
|
|
23893
|
-
const inputRegex$
|
|
23894
|
-
const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g;
|
|
24096
|
+
const inputRegex$3 = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/;
|
|
24097
|
+
const pasteRegex$1 = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g;
|
|
23895
24098
|
const Strike = Mark.create({
|
|
23896
24099
|
name: "strike",
|
|
23897
24100
|
addOptions() {
|
|
@@ -23941,7 +24144,7 @@ img.ProseMirror-separator {
|
|
|
23941
24144
|
addInputRules() {
|
|
23942
24145
|
return [
|
|
23943
24146
|
markInputRule({
|
|
23944
|
-
find: inputRegex$
|
|
24147
|
+
find: inputRegex$3,
|
|
23945
24148
|
type: this.type
|
|
23946
24149
|
})
|
|
23947
24150
|
];
|
|
@@ -23949,7 +24152,7 @@ img.ProseMirror-separator {
|
|
|
23949
24152
|
addPasteRules() {
|
|
23950
24153
|
return [
|
|
23951
24154
|
markPasteRule({
|
|
23952
|
-
find: pasteRegex,
|
|
24155
|
+
find: pasteRegex$1,
|
|
23953
24156
|
type: this.type
|
|
23954
24157
|
})
|
|
23955
24158
|
];
|
|
@@ -23995,7 +24198,7 @@ img.ProseMirror-separator {
|
|
|
23995
24198
|
};
|
|
23996
24199
|
}
|
|
23997
24200
|
});
|
|
23998
|
-
const inputRegex$
|
|
24201
|
+
const inputRegex$2 = /^\s*(\[([( |x])?\])\s$/;
|
|
23999
24202
|
const TaskItem = Node.create({
|
|
24000
24203
|
name: "taskItem",
|
|
24001
24204
|
addOptions() {
|
|
@@ -24126,7 +24329,7 @@ img.ProseMirror-separator {
|
|
|
24126
24329
|
addInputRules() {
|
|
24127
24330
|
return [
|
|
24128
24331
|
wrappingInputRule({
|
|
24129
|
-
find: inputRegex$
|
|
24332
|
+
find: inputRegex$2,
|
|
24130
24333
|
type: this.type,
|
|
24131
24334
|
getAttributes: (match) => ({
|
|
24132
24335
|
checked: match[match.length - 1] === "x"
|
|
@@ -25366,6 +25569,81 @@ img.ProseMirror-separator {
|
|
|
25366
25569
|
];
|
|
25367
25570
|
}
|
|
25368
25571
|
});
|
|
25572
|
+
const inputRegex$1 = /(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/;
|
|
25573
|
+
const pasteRegex = /(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g;
|
|
25574
|
+
const Highlight = Mark.create({
|
|
25575
|
+
name: "highlight",
|
|
25576
|
+
addOptions() {
|
|
25577
|
+
return {
|
|
25578
|
+
multicolor: false,
|
|
25579
|
+
HTMLAttributes: {}
|
|
25580
|
+
};
|
|
25581
|
+
},
|
|
25582
|
+
addAttributes() {
|
|
25583
|
+
if (!this.options.multicolor) {
|
|
25584
|
+
return {};
|
|
25585
|
+
}
|
|
25586
|
+
return {
|
|
25587
|
+
color: {
|
|
25588
|
+
default: null,
|
|
25589
|
+
parseHTML: (element) => element.getAttribute("data-color") || element.style.backgroundColor,
|
|
25590
|
+
renderHTML: (attributes) => {
|
|
25591
|
+
if (!attributes.color) {
|
|
25592
|
+
return {};
|
|
25593
|
+
}
|
|
25594
|
+
return {
|
|
25595
|
+
"data-color": attributes.color,
|
|
25596
|
+
style: `background-color: ${attributes.color}; color: inherit`
|
|
25597
|
+
};
|
|
25598
|
+
}
|
|
25599
|
+
}
|
|
25600
|
+
};
|
|
25601
|
+
},
|
|
25602
|
+
parseHTML() {
|
|
25603
|
+
return [
|
|
25604
|
+
{
|
|
25605
|
+
tag: "mark"
|
|
25606
|
+
}
|
|
25607
|
+
];
|
|
25608
|
+
},
|
|
25609
|
+
renderHTML({ HTMLAttributes }) {
|
|
25610
|
+
return ["mark", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
25611
|
+
},
|
|
25612
|
+
addCommands() {
|
|
25613
|
+
return {
|
|
25614
|
+
setHighlight: (attributes) => ({ commands: commands2 }) => {
|
|
25615
|
+
return commands2.setMark(this.name, attributes);
|
|
25616
|
+
},
|
|
25617
|
+
toggleHighlight: (attributes) => ({ commands: commands2 }) => {
|
|
25618
|
+
return commands2.toggleMark(this.name, attributes);
|
|
25619
|
+
},
|
|
25620
|
+
unsetHighlight: () => ({ commands: commands2 }) => {
|
|
25621
|
+
return commands2.unsetMark(this.name);
|
|
25622
|
+
}
|
|
25623
|
+
};
|
|
25624
|
+
},
|
|
25625
|
+
addKeyboardShortcuts() {
|
|
25626
|
+
return {
|
|
25627
|
+
"Mod-Shift-h": () => this.editor.commands.toggleHighlight()
|
|
25628
|
+
};
|
|
25629
|
+
},
|
|
25630
|
+
addInputRules() {
|
|
25631
|
+
return [
|
|
25632
|
+
markInputRule({
|
|
25633
|
+
find: inputRegex$1,
|
|
25634
|
+
type: this.type
|
|
25635
|
+
})
|
|
25636
|
+
];
|
|
25637
|
+
},
|
|
25638
|
+
addPasteRules() {
|
|
25639
|
+
return [
|
|
25640
|
+
markPasteRule({
|
|
25641
|
+
find: pasteRegex,
|
|
25642
|
+
type: this.type
|
|
25643
|
+
})
|
|
25644
|
+
];
|
|
25645
|
+
}
|
|
25646
|
+
});
|
|
25369
25647
|
function findSuggestionMatch(config2) {
|
|
25370
25648
|
var _a2;
|
|
25371
25649
|
const { char, allowSpaces, allowedPrefixes, startOfLine, $position } = config2;
|
|
@@ -25586,9 +25864,9 @@ img.ProseMirror-separator {
|
|
|
25586
25864
|
];
|
|
25587
25865
|
}
|
|
25588
25866
|
});
|
|
25589
|
-
const _hoisted_1$
|
|
25590
|
-
const _hoisted_2$
|
|
25591
|
-
const _hoisted_3$
|
|
25867
|
+
const _hoisted_1$H = { class: "command-items" };
|
|
25868
|
+
const _hoisted_2$G = ["id", "onClick"];
|
|
25869
|
+
const _hoisted_3$G = { class: "command-title group-hover:text-gray-900 group-hover:font-medium" };
|
|
25592
25870
|
const _hoisted_4 = {
|
|
25593
25871
|
key: 1,
|
|
25594
25872
|
class: "command-empty"
|
|
@@ -25664,7 +25942,7 @@ img.ProseMirror-separator {
|
|
|
25664
25942
|
onKeyDown
|
|
25665
25943
|
});
|
|
25666
25944
|
return (_ctx, _cache) => {
|
|
25667
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25945
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
|
|
25668
25946
|
__props.items.length ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(__props.items, (item, index2) => {
|
|
25669
25947
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
25670
25948
|
id: `command-item-${index2}`,
|
|
@@ -25673,14 +25951,78 @@ img.ProseMirror-separator {
|
|
|
25673
25951
|
onClick: ($event) => handleSelectItem(index2)
|
|
25674
25952
|
}, [
|
|
25675
25953
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.icon), { class: "command-icon group-hover:!bg-white" })),
|
|
25676
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
25677
|
-
], 10, _hoisted_2$
|
|
25954
|
+
vue.createElementVNode("span", _hoisted_3$G, vue.toDisplayString(item.title), 1)
|
|
25955
|
+
], 10, _hoisted_2$G);
|
|
25678
25956
|
}), 128)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, _hoisted_6))
|
|
25679
25957
|
]);
|
|
25680
25958
|
};
|
|
25681
25959
|
}
|
|
25682
25960
|
});
|
|
25683
25961
|
const CommandsView_vue_vue_type_style_index_0_lang = "";
|
|
25962
|
+
const _hoisted_1$G = {
|
|
25963
|
+
viewBox: "0 0 24 24",
|
|
25964
|
+
width: "1.2em",
|
|
25965
|
+
height: "1.2em"
|
|
25966
|
+
};
|
|
25967
|
+
const _hoisted_2$F = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25968
|
+
fill: "currentColor",
|
|
25969
|
+
d: "M13 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4h-2v6H9V4h4m0 6a2 2 0 0 0 2-2a2 2 0 0 0-2-2h-2v4h2Z"
|
|
25970
|
+
}, null, -1);
|
|
25971
|
+
const _hoisted_3$F = [
|
|
25972
|
+
_hoisted_2$F
|
|
25973
|
+
];
|
|
25974
|
+
function render$D(_ctx, _cache) {
|
|
25975
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$G, _hoisted_3$F);
|
|
25976
|
+
}
|
|
25977
|
+
const MdiFormatParagraph = { name: "mdi-format-paragraph", render: render$D };
|
|
25978
|
+
const _hoisted_1$F = {
|
|
25979
|
+
viewBox: "0 0 24 24",
|
|
25980
|
+
width: "1.2em",
|
|
25981
|
+
height: "1.2em"
|
|
25982
|
+
};
|
|
25983
|
+
const _hoisted_2$E = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25984
|
+
fill: "currentColor",
|
|
25985
|
+
d: "M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m11 14v-2h2V6.31l-2.5 1.44V5.44L16 4h2v12h2v2h-6Z"
|
|
25986
|
+
}, null, -1);
|
|
25987
|
+
const _hoisted_3$E = [
|
|
25988
|
+
_hoisted_2$E
|
|
25989
|
+
];
|
|
25990
|
+
function render$C(_ctx, _cache) {
|
|
25991
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$F, _hoisted_3$E);
|
|
25992
|
+
}
|
|
25993
|
+
const MdiFormatHeader1 = { name: "mdi-format-header-1", render: render$C };
|
|
25994
|
+
const _hoisted_1$E = {
|
|
25995
|
+
viewBox: "0 0 24 24",
|
|
25996
|
+
width: "1.2em",
|
|
25997
|
+
height: "1.2em"
|
|
25998
|
+
};
|
|
25999
|
+
const _hoisted_2$D = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
26000
|
+
fill: "currentColor",
|
|
26001
|
+
d: "M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m18 14h-6a2 2 0 0 1-2-2c0-.53.2-1 .54-1.36l4.87-5.23c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2a2 2 0 0 0-2 2h-2a4 4 0 0 1 4-4a4 4 0 0 1 4 4c0 1.1-.45 2.1-1.17 2.83L15 16h6v2Z"
|
|
26002
|
+
}, null, -1);
|
|
26003
|
+
const _hoisted_3$D = [
|
|
26004
|
+
_hoisted_2$D
|
|
26005
|
+
];
|
|
26006
|
+
function render$B(_ctx, _cache) {
|
|
26007
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$E, _hoisted_3$D);
|
|
26008
|
+
}
|
|
26009
|
+
const MdiFormatHeader2 = { name: "mdi-format-header-2", render: render$B };
|
|
26010
|
+
const _hoisted_1$D = {
|
|
26011
|
+
viewBox: "0 0 24 24",
|
|
26012
|
+
width: "1.2em",
|
|
26013
|
+
height: "1.2em"
|
|
26014
|
+
};
|
|
26015
|
+
const _hoisted_2$C = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
26016
|
+
fill: "currentColor",
|
|
26017
|
+
d: "M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m12 0h4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-1h2v1h4v-4h-4v-2h4V6h-4v1h-2V6a2 2 0 0 1 2-2Z"
|
|
26018
|
+
}, null, -1);
|
|
26019
|
+
const _hoisted_3$C = [
|
|
26020
|
+
_hoisted_2$C
|
|
26021
|
+
];
|
|
26022
|
+
function render$A(_ctx, _cache) {
|
|
26023
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$D, _hoisted_3$C);
|
|
26024
|
+
}
|
|
26025
|
+
const MdiFormatHeader3 = { name: "mdi-format-header-3", render: render$A };
|
|
25684
26026
|
const _hoisted_1$C = {
|
|
25685
26027
|
viewBox: "0 0 24 24",
|
|
25686
26028
|
width: "1.2em",
|
|
@@ -25688,7 +26030,7 @@ img.ProseMirror-separator {
|
|
|
25688
26030
|
};
|
|
25689
26031
|
const _hoisted_2$B = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25690
26032
|
fill: "currentColor",
|
|
25691
|
-
d: "M3 4h2v6h4V4h2v14H9v-
|
|
26033
|
+
d: "M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m15 14v-5h-5v-2l5-7h2v7h1v2h-1v5h-2m0-7V7.42L15.45 11H18Z"
|
|
25692
26034
|
}, null, -1);
|
|
25693
26035
|
const _hoisted_3$B = [
|
|
25694
26036
|
_hoisted_2$B
|
|
@@ -25696,7 +26038,7 @@ img.ProseMirror-separator {
|
|
|
25696
26038
|
function render$z(_ctx, _cache) {
|
|
25697
26039
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$C, _hoisted_3$B);
|
|
25698
26040
|
}
|
|
25699
|
-
const
|
|
26041
|
+
const MdiFormatHeader4 = { name: "mdi-format-header-4", render: render$z };
|
|
25700
26042
|
const _hoisted_1$B = {
|
|
25701
26043
|
viewBox: "0 0 24 24",
|
|
25702
26044
|
width: "1.2em",
|
|
@@ -25704,7 +26046,7 @@ img.ProseMirror-separator {
|
|
|
25704
26046
|
};
|
|
25705
26047
|
const _hoisted_2$A = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25706
26048
|
fill: "currentColor",
|
|
25707
|
-
d: "M3 4h2v6h4V4h2v14H9v-
|
|
26049
|
+
d: "M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m12 0h5v2h-5v4h2a4 4 0 0 1 4 4a4 4 0 0 1-4 4h-2a2 2 0 0 1-2-2v-1h2v1h2a2 2 0 0 0 2-2a2 2 0 0 0-2-2h-2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z"
|
|
25708
26050
|
}, null, -1);
|
|
25709
26051
|
const _hoisted_3$A = [
|
|
25710
26052
|
_hoisted_2$A
|
|
@@ -25712,7 +26054,7 @@ img.ProseMirror-separator {
|
|
|
25712
26054
|
function render$y(_ctx, _cache) {
|
|
25713
26055
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$B, _hoisted_3$A);
|
|
25714
26056
|
}
|
|
25715
|
-
const
|
|
26057
|
+
const MdiFormatHeader5 = { name: "mdi-format-header-5", render: render$y };
|
|
25716
26058
|
const _hoisted_1$A = {
|
|
25717
26059
|
viewBox: "0 0 24 24",
|
|
25718
26060
|
width: "1.2em",
|
|
@@ -25720,7 +26062,7 @@ img.ProseMirror-separator {
|
|
|
25720
26062
|
};
|
|
25721
26063
|
const _hoisted_2$z = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25722
26064
|
fill: "currentColor",
|
|
25723
|
-
d: "M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m12 0h4a2 2 0 0 1 2
|
|
26065
|
+
d: "M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m12 0h4a2 2 0 0 1 2 2v1h-2V6h-4v4h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m0 8v4h4v-4h-4Z"
|
|
25724
26066
|
}, null, -1);
|
|
25725
26067
|
const _hoisted_3$z = [
|
|
25726
26068
|
_hoisted_2$z
|
|
@@ -25728,7 +26070,7 @@ img.ProseMirror-separator {
|
|
|
25728
26070
|
function render$x(_ctx, _cache) {
|
|
25729
26071
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$A, _hoisted_3$z);
|
|
25730
26072
|
}
|
|
25731
|
-
const
|
|
26073
|
+
const MdiFormatHeader6 = { name: "mdi-format-header-6", render: render$x };
|
|
25732
26074
|
const _hoisted_1$z = {
|
|
25733
26075
|
viewBox: "0 0 24 24",
|
|
25734
26076
|
width: "1.2em",
|
|
@@ -25736,7 +26078,7 @@ img.ProseMirror-separator {
|
|
|
25736
26078
|
};
|
|
25737
26079
|
const _hoisted_2$y = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25738
26080
|
fill: "currentColor",
|
|
25739
|
-
d: "
|
|
26081
|
+
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 5H9v2c0 1.1-.9 2-2 2c1.1 0 2 .9 2 2v2h2v2H9c-1.1 0-2-.9-2-2v-1c0-1.1-.9-2-2-2v-2c1.1 0 2-.9 2-2V8c0-1.1.9-2 2-2h2v2m8 5c-1.1 0-2 .9-2 2v1c0 1.1-.9 2-2 2h-2v-2h2v-2c0-1.1.9-2 2-2c-1.1 0-2-.9-2-2V8h-2V6h2c1.1 0 2 .9 2 2v1c0 1.1.9 2 2 2v2Z"
|
|
25740
26082
|
}, null, -1);
|
|
25741
26083
|
const _hoisted_3$y = [
|
|
25742
26084
|
_hoisted_2$y
|
|
@@ -25744,7 +26086,7 @@ img.ProseMirror-separator {
|
|
|
25744
26086
|
function render$w(_ctx, _cache) {
|
|
25745
26087
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$z, _hoisted_3$y);
|
|
25746
26088
|
}
|
|
25747
|
-
const
|
|
26089
|
+
const MdiCodeBracesBox = { name: "mdi-code-braces-box", render: render$w };
|
|
25748
26090
|
const _hoisted_1$y = {
|
|
25749
26091
|
viewBox: "0 0 24 24",
|
|
25750
26092
|
width: "1.2em",
|
|
@@ -25752,7 +26094,7 @@ img.ProseMirror-separator {
|
|
|
25752
26094
|
};
|
|
25753
26095
|
const _hoisted_2$x = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25754
26096
|
fill: "currentColor",
|
|
25755
|
-
d: "
|
|
26097
|
+
d: "M7 5h14v2H7V5m0 8v-2h14v2H7M4 4.5A1.5 1.5 0 0 1 5.5 6A1.5 1.5 0 0 1 4 7.5A1.5 1.5 0 0 1 2.5 6A1.5 1.5 0 0 1 4 4.5m0 6A1.5 1.5 0 0 1 5.5 12A1.5 1.5 0 0 1 4 13.5A1.5 1.5 0 0 1 2.5 12A1.5 1.5 0 0 1 4 10.5M7 19v-2h14v2H7m-3-2.5A1.5 1.5 0 0 1 5.5 18A1.5 1.5 0 0 1 4 19.5A1.5 1.5 0 0 1 2.5 18A1.5 1.5 0 0 1 4 16.5Z"
|
|
25756
26098
|
}, null, -1);
|
|
25757
26099
|
const _hoisted_3$x = [
|
|
25758
26100
|
_hoisted_2$x
|
|
@@ -25760,7 +26102,7 @@ img.ProseMirror-separator {
|
|
|
25760
26102
|
function render$v(_ctx, _cache) {
|
|
25761
26103
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$y, _hoisted_3$x);
|
|
25762
26104
|
}
|
|
25763
|
-
const
|
|
26105
|
+
const MdiFormatListBulleted = { name: "mdi-format-list-bulleted", render: render$v };
|
|
25764
26106
|
const _hoisted_1$x = {
|
|
25765
26107
|
viewBox: "0 0 24 24",
|
|
25766
26108
|
width: "1.2em",
|
|
@@ -25768,7 +26110,7 @@ img.ProseMirror-separator {
|
|
|
25768
26110
|
};
|
|
25769
26111
|
const _hoisted_2$w = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25770
26112
|
fill: "currentColor",
|
|
25771
|
-
d: "
|
|
26113
|
+
d: "M21 19v-2H8v2h13m0-6v-2H8v2h13M8 7h13V5H8v2M4 5v2h2V5H4M3 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5m1 6v2h2v-2H4m-1 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2m1 6v2h2v-2H4m-1 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2Z"
|
|
25772
26114
|
}, null, -1);
|
|
25773
26115
|
const _hoisted_3$w = [
|
|
25774
26116
|
_hoisted_2$w
|
|
@@ -25776,7 +26118,7 @@ img.ProseMirror-separator {
|
|
|
25776
26118
|
function render$u(_ctx, _cache) {
|
|
25777
26119
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$x, _hoisted_3$w);
|
|
25778
26120
|
}
|
|
25779
|
-
const
|
|
26121
|
+
const MdiFormatListCheckbox = { name: "mdi-format-list-checkbox", render: render$u };
|
|
25780
26122
|
const _hoisted_1$w = {
|
|
25781
26123
|
viewBox: "0 0 24 24",
|
|
25782
26124
|
width: "1.2em",
|
|
@@ -25784,7 +26126,7 @@ img.ProseMirror-separator {
|
|
|
25784
26126
|
};
|
|
25785
26127
|
const _hoisted_2$v = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25786
26128
|
fill: "currentColor",
|
|
25787
|
-
d: "
|
|
26129
|
+
d: "M7 13v-2h14v2H7m0 6v-2h14v2H7M7 7V5h14v2H7M3 8V5H2V4h2v4H3m-1 9v-1h3v4H2v-1h2v-.5H3v-1h1V17H2m2.25-7a.75.75 0 0 1 .75.75c0 .2-.08.39-.21.52L3.12 13H5v1H2v-.92L4 11H2v-1h2.25Z"
|
|
25788
26130
|
}, null, -1);
|
|
25789
26131
|
const _hoisted_3$v = [
|
|
25790
26132
|
_hoisted_2$v
|
|
@@ -25792,7 +26134,7 @@ img.ProseMirror-separator {
|
|
|
25792
26134
|
function render$t(_ctx, _cache) {
|
|
25793
26135
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$w, _hoisted_3$v);
|
|
25794
26136
|
}
|
|
25795
|
-
const
|
|
26137
|
+
const MdiFormatListNumbered = { name: "mdi-format-list-numbered", render: render$t };
|
|
25796
26138
|
const _hoisted_1$v = {
|
|
25797
26139
|
viewBox: "0 0 24 24",
|
|
25798
26140
|
width: "1.2em",
|
|
@@ -25800,7 +26142,7 @@ img.ProseMirror-separator {
|
|
|
25800
26142
|
};
|
|
25801
26143
|
const _hoisted_2$u = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
25802
26144
|
fill: "currentColor",
|
|
25803
|
-
d: "
|
|
26145
|
+
d: "M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m0 4v4h6V8H5m8 0v4h6V8h-6m-8 6v4h6v-4H5m8 0v4h6v-4h-6Z"
|
|
25804
26146
|
}, null, -1);
|
|
25805
26147
|
const _hoisted_3$u = [
|
|
25806
26148
|
_hoisted_2$u
|
|
@@ -25808,7 +26150,31 @@ img.ProseMirror-separator {
|
|
|
25808
26150
|
function render$s(_ctx, _cache) {
|
|
25809
26151
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$v, _hoisted_3$u);
|
|
25810
26152
|
}
|
|
25811
|
-
const
|
|
26153
|
+
const MdiTable = { name: "mdi-table", render: render$s };
|
|
26154
|
+
const _hoisted_1$u = {
|
|
26155
|
+
viewBox: "0 0 24 24",
|
|
26156
|
+
width: "1.2em",
|
|
26157
|
+
height: "1.2em"
|
|
26158
|
+
};
|
|
26159
|
+
const _hoisted_2$t = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
26160
|
+
fill: "currentColor",
|
|
26161
|
+
d: "M16.36 14c.08-.66.14-1.32.14-2c0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2m-5.15 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56M14.34 14H9.66c-.1-.66-.16-1.32-.16-2c0-.68.06-1.35.16-2h4.68c.09.65.16 1.32.16 2c0 .68-.07 1.34-.16 2M12 19.96c-.83-1.2-1.5-2.53-1.91-3.96h3.82c-.41 1.43-1.08 2.76-1.91 3.96M8 8H5.08A7.923 7.923 0 0 1 9.4 4.44C8.8 5.55 8.35 6.75 8 8m-2.92 8H8c.35 1.25.8 2.45 1.4 3.56A8.008 8.008 0 0 1 5.08 16m-.82-2C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2c0 .68.06 1.34.14 2M12 4.03c.83 1.2 1.5 2.54 1.91 3.97h-3.82c.41-1.43 1.08-2.77 1.91-3.97M18.92 8h-2.95a15.65 15.65 0 0 0-1.38-3.56c1.84.63 3.37 1.9 4.33 3.56M12 2C6.47 2 2 6.5 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"
|
|
26162
|
+
}, null, -1);
|
|
26163
|
+
const _hoisted_3$t = [
|
|
26164
|
+
_hoisted_2$t
|
|
26165
|
+
];
|
|
26166
|
+
function render$r(_ctx, _cache) {
|
|
26167
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$u, _hoisted_3$t);
|
|
26168
|
+
}
|
|
26169
|
+
const MdiWeb = { name: "mdi-web", render: render$r };
|
|
26170
|
+
const CommentParagraph = {
|
|
26171
|
+
icon: vue.markRaw(MdiFormatParagraph),
|
|
26172
|
+
title: "\u666E\u901A\u6587\u672C",
|
|
26173
|
+
keywords: ["paragraph", "text", "\u666E\u901A\u6587\u672C", "putongwenben"],
|
|
26174
|
+
command: ({ editor, range }) => {
|
|
26175
|
+
editor.chain().focus().deleteRange(range).setParagraph().run();
|
|
26176
|
+
}
|
|
26177
|
+
};
|
|
25812
26178
|
const CommandHeader1 = {
|
|
25813
26179
|
icon: vue.markRaw(MdiFormatHeader1),
|
|
25814
26180
|
title: "\u4E00\u7EA7\u6807\u9898",
|
|
@@ -25876,65 +26242,54 @@ img.ProseMirror-separator {
|
|
|
25876
26242
|
]).run();
|
|
25877
26243
|
}
|
|
25878
26244
|
};
|
|
26245
|
+
const CommandTable = {
|
|
26246
|
+
icon: vue.markRaw(MdiTable),
|
|
26247
|
+
title: "\u8868\u683C",
|
|
26248
|
+
keywords: ["table", "biaoge"],
|
|
26249
|
+
command: ({ editor, range }) => {
|
|
26250
|
+
editor.chain().focus().deleteRange(range).insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run();
|
|
26251
|
+
}
|
|
26252
|
+
};
|
|
26253
|
+
const CommandBulletList = {
|
|
26254
|
+
icon: vue.markRaw(MdiFormatListBulleted),
|
|
26255
|
+
title: "\u65E0\u5E8F\u5217\u8868",
|
|
26256
|
+
keywords: ["bulletlist", "wuxuliebiao"],
|
|
26257
|
+
command: ({ editor, range }) => {
|
|
26258
|
+
editor.chain().focus().deleteRange(range).toggleBulletList().run();
|
|
26259
|
+
}
|
|
26260
|
+
};
|
|
26261
|
+
const CommandOrderedList = {
|
|
26262
|
+
icon: vue.markRaw(MdiFormatListNumbered),
|
|
26263
|
+
title: "\u6709\u5E8F\u5217\u8868",
|
|
26264
|
+
keywords: ["orderedlist", "youxuliebiao"],
|
|
26265
|
+
command: ({ editor, range }) => {
|
|
26266
|
+
editor.chain().focus().deleteRange(range).toggleOrderedList().run();
|
|
26267
|
+
}
|
|
26268
|
+
};
|
|
26269
|
+
const CommandTaskList = {
|
|
26270
|
+
icon: vue.markRaw(MdiFormatListCheckbox),
|
|
26271
|
+
title: "\u4EFB\u52A1\u5217\u8868",
|
|
26272
|
+
keywords: ["tasklist", "renwuliebiao"],
|
|
26273
|
+
command: ({ editor, range }) => {
|
|
26274
|
+
editor.chain().focus().deleteRange(range).toggleTaskList().run();
|
|
26275
|
+
}
|
|
26276
|
+
};
|
|
25879
26277
|
const suggestion = {
|
|
25880
26278
|
items: ({ query }) => {
|
|
25881
26279
|
return [
|
|
25882
|
-
|
|
25883
|
-
|
|
25884
|
-
|
|
25885
|
-
|
|
25886
|
-
|
|
25887
|
-
|
|
25888
|
-
|
|
25889
|
-
|
|
25890
|
-
|
|
25891
|
-
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
editor.chain().focus().deleteRange(range).setNode("heading", { level: 2 }).run();
|
|
25896
|
-
}
|
|
25897
|
-
},
|
|
25898
|
-
{
|
|
25899
|
-
icon: vue.markRaw(MdiFormatHeader3),
|
|
25900
|
-
title: "\u4E09\u7EA7\u6807\u9898",
|
|
25901
|
-
keywords: ["h3", "header3", "3", "sanjibiaoti"],
|
|
25902
|
-
command: ({ editor, range }) => {
|
|
25903
|
-
editor.chain().focus().deleteRange(range).setNode("heading", { level: 3 }).run();
|
|
25904
|
-
}
|
|
25905
|
-
},
|
|
25906
|
-
{
|
|
25907
|
-
icon: vue.markRaw(MdiFormatHeader4),
|
|
25908
|
-
title: "\u56DB\u7EA7\u6807\u9898",
|
|
25909
|
-
keywords: ["h4", "header4", "4", "sijibiaoti"],
|
|
25910
|
-
command: ({ editor, range }) => {
|
|
25911
|
-
editor.chain().focus().deleteRange(range).setNode("heading", { level: 4 }).run();
|
|
25912
|
-
}
|
|
25913
|
-
},
|
|
25914
|
-
{
|
|
25915
|
-
icon: vue.markRaw(MdiFormatHeader5),
|
|
25916
|
-
title: "\u4E94\u7EA7\u6807\u9898",
|
|
25917
|
-
keywords: ["h5", "header5", "5", "wujibiaoti"],
|
|
25918
|
-
command: ({ editor, range }) => {
|
|
25919
|
-
editor.chain().focus().deleteRange(range).setNode("heading", { level: 5 }).run();
|
|
25920
|
-
}
|
|
25921
|
-
},
|
|
25922
|
-
{
|
|
25923
|
-
icon: vue.markRaw(MdiFormatHeader6),
|
|
25924
|
-
title: "\u516D\u7EA7\u6807\u9898",
|
|
25925
|
-
keywords: ["h6", "header6", "6", "liujibiaoti"],
|
|
25926
|
-
command: ({ editor, range }) => {
|
|
25927
|
-
editor.chain().focus().deleteRange(range).setNode("heading", { level: 6 }).run();
|
|
25928
|
-
}
|
|
25929
|
-
},
|
|
25930
|
-
{
|
|
25931
|
-
icon: vue.markRaw(MdiCodeBracesBox),
|
|
25932
|
-
title: "\u4EE3\u7801\u5757",
|
|
25933
|
-
keywords: ["codeblock", "daimakuai"],
|
|
25934
|
-
command: ({ editor, range }) => {
|
|
25935
|
-
editor.chain().focus().deleteRange(range).setCodeBlock().run();
|
|
25936
|
-
}
|
|
25937
|
-
}
|
|
26280
|
+
CommentParagraph,
|
|
26281
|
+
CommandHeader1,
|
|
26282
|
+
CommandHeader2,
|
|
26283
|
+
CommandHeader3,
|
|
26284
|
+
CommandHeader4,
|
|
26285
|
+
CommandHeader5,
|
|
26286
|
+
CommandHeader6,
|
|
26287
|
+
CommandCodeBlock,
|
|
26288
|
+
CommandTable,
|
|
26289
|
+
CommandBulletList,
|
|
26290
|
+
CommandOrderedList,
|
|
26291
|
+
CommandTaskList,
|
|
26292
|
+
CommandIframe
|
|
25938
26293
|
].filter(
|
|
25939
26294
|
(item) => [...item.keywords, item.title].some(
|
|
25940
26295
|
(keyword) => keyword.includes(query)
|
|
@@ -41000,9 +41355,9 @@ img.ProseMirror-separator {
|
|
|
41000
41355
|
lowlight$1.registerLanguage("xml", xml);
|
|
41001
41356
|
lowlight$1.registerLanguage("yaml", yaml);
|
|
41002
41357
|
const lowlight = lowlight$1;
|
|
41003
|
-
const _hoisted_1$
|
|
41004
|
-
const _hoisted_2$
|
|
41005
|
-
const _hoisted_3$
|
|
41358
|
+
const _hoisted_1$t = { class: "px-2 py-1.5" };
|
|
41359
|
+
const _hoisted_2$s = /* @__PURE__ */ vue.createElementVNode("option", { value: null }, "auto", -1);
|
|
41360
|
+
const _hoisted_3$s = ["value"];
|
|
41006
41361
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
41007
41362
|
__name: "CodeBlockViewRenderer",
|
|
41008
41363
|
props: {
|
|
@@ -41032,18 +41387,18 @@ img.ProseMirror-separator {
|
|
|
41032
41387
|
return (_ctx, _cache) => {
|
|
41033
41388
|
return vue.openBlock(), vue.createBlock(vue.unref(NodeViewWrapper), { class: "code-block divide-gray-100 bg-gray-100 overflow-hidden rounded-md my-3" }, {
|
|
41034
41389
|
default: vue.withCtx(() => [
|
|
41035
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
41390
|
+
vue.createElementVNode("div", _hoisted_1$t, [
|
|
41036
41391
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
41037
41392
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(selectedLanguage) ? selectedLanguage.value = $event : null),
|
|
41038
41393
|
contenteditable: "false",
|
|
41039
41394
|
class: "block px-2 py-1.5 text-sm text-gray-900 border border-gray-300 rounded-md bg-gray-50 focus:ring-blue-500 focus:border-blue-500"
|
|
41040
41395
|
}, [
|
|
41041
|
-
_hoisted_2$
|
|
41396
|
+
_hoisted_2$s,
|
|
41042
41397
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(languages), (language, index2) => {
|
|
41043
41398
|
return vue.openBlock(), vue.createElementBlock("option", {
|
|
41044
41399
|
key: index2,
|
|
41045
41400
|
value: language
|
|
41046
|
-
}, vue.toDisplayString(language), 9, _hoisted_3$
|
|
41401
|
+
}, vue.toDisplayString(language), 9, _hoisted_3$s);
|
|
41047
41402
|
}), 128))
|
|
41048
41403
|
], 512), [
|
|
41049
41404
|
[vue.vModelSelect, vue.unref(selectedLanguage)]
|
|
@@ -41065,9 +41420,9 @@ img.ProseMirror-separator {
|
|
|
41065
41420
|
return VueNodeViewRenderer(_sfc_main$2);
|
|
41066
41421
|
}
|
|
41067
41422
|
});
|
|
41068
|
-
const _hoisted_1$
|
|
41069
|
-
const _hoisted_2$
|
|
41070
|
-
const _hoisted_3$
|
|
41423
|
+
const _hoisted_1$s = { class: "block w-full relative" };
|
|
41424
|
+
const _hoisted_2$r = { class: "px-2 py-1.5" };
|
|
41425
|
+
const _hoisted_3$r = ["src", "width", "height"];
|
|
41071
41426
|
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
41072
41427
|
__name: "IframeView",
|
|
41073
41428
|
props: {
|
|
@@ -41097,8 +41452,8 @@ img.ProseMirror-separator {
|
|
|
41097
41452
|
class: "divide-gray-100 bg-gray-100 overflow-hidden rounded-md w-full my-3"
|
|
41098
41453
|
}, {
|
|
41099
41454
|
default: vue.withCtx(() => [
|
|
41100
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
41101
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
41455
|
+
vue.createElementVNode("div", _hoisted_1$s, [
|
|
41456
|
+
vue.createElementVNode("div", _hoisted_2$r, [
|
|
41102
41457
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
41103
41458
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(src) ? src.value = $event : null),
|
|
41104
41459
|
class: "block px-2 w-full py-1.5 text-sm text-gray-900 border border-gray-300 rounded-md bg-gray-50 focus:ring-blue-500 focus:border-blue-500",
|
|
@@ -41118,7 +41473,7 @@ img.ProseMirror-separator {
|
|
|
41118
41473
|
frameborder: "no",
|
|
41119
41474
|
framespacing: "0",
|
|
41120
41475
|
allowfullscreen: "true"
|
|
41121
|
-
}, null, 8, _hoisted_3$
|
|
41476
|
+
}, null, 8, _hoisted_3$r)) : vue.createCommentVNode("", true)
|
|
41122
41477
|
])
|
|
41123
41478
|
]),
|
|
41124
41479
|
_: 1
|
|
@@ -41463,7 +41818,7 @@ img.ProseMirror-separator {
|
|
|
41463
41818
|
__spreadValues({
|
|
41464
41819
|
linear: identity
|
|
41465
41820
|
}, _TransitionPresets);
|
|
41466
|
-
const _hoisted_1$
|
|
41821
|
+
const _hoisted_1$r = ["src", "title", "alt"];
|
|
41467
41822
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
41468
41823
|
__name: "ImageView",
|
|
41469
41824
|
props: {
|
|
@@ -41515,7 +41870,7 @@ img.ProseMirror-separator {
|
|
|
41515
41870
|
title: __props.node.attrs.title,
|
|
41516
41871
|
alt: vue.unref(alt),
|
|
41517
41872
|
class: "w-full h-full"
|
|
41518
|
-
}, null, 8, _hoisted_1$
|
|
41873
|
+
}, null, 8, _hoisted_1$r)
|
|
41519
41874
|
], 6)
|
|
41520
41875
|
]),
|
|
41521
41876
|
_: 1
|
|
@@ -43836,6 +44191,7 @@ img.ProseMirror-separator {
|
|
|
43836
44191
|
Image,
|
|
43837
44192
|
TaskList,
|
|
43838
44193
|
TaskItem,
|
|
44194
|
+
Highlight,
|
|
43839
44195
|
Link.configure({
|
|
43840
44196
|
autolink: true,
|
|
43841
44197
|
openOnClick: false
|
|
@@ -43860,22 +44216,6 @@ img.ProseMirror-separator {
|
|
|
43860
44216
|
}),
|
|
43861
44217
|
Iframe
|
|
43862
44218
|
];
|
|
43863
|
-
const _hoisted_1$r = {
|
|
43864
|
-
viewBox: "0 0 24 24",
|
|
43865
|
-
width: "1.2em",
|
|
43866
|
-
height: "1.2em"
|
|
43867
|
-
};
|
|
43868
|
-
const _hoisted_2$r = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
43869
|
-
fill: "currentColor",
|
|
43870
|
-
d: "M13.5 15.5H10v-3h3.5A1.5 1.5 0 0 1 15 14a1.5 1.5 0 0 1-1.5 1.5m-3.5-9h3A1.5 1.5 0 0 1 14.5 8A1.5 1.5 0 0 1 13 9.5h-3m5.6 1.29c.97-.68 1.65-1.79 1.65-2.79c0-2.26-1.75-4-4-4H7v14h7.04c2.1 0 3.71-1.7 3.71-3.79c0-1.52-.86-2.82-2.15-3.42Z"
|
|
43871
|
-
}, null, -1);
|
|
43872
|
-
const _hoisted_3$r = [
|
|
43873
|
-
_hoisted_2$r
|
|
43874
|
-
];
|
|
43875
|
-
function render$r(_ctx, _cache) {
|
|
43876
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$r, _hoisted_3$r);
|
|
43877
|
-
}
|
|
43878
|
-
const MdiFormatBold = { name: "mdi-format-bold", render: render$r };
|
|
43879
44219
|
const _hoisted_1$q = {
|
|
43880
44220
|
viewBox: "0 0 24 24",
|
|
43881
44221
|
width: "1.2em",
|
|
@@ -43883,7 +44223,7 @@ img.ProseMirror-separator {
|
|
|
43883
44223
|
};
|
|
43884
44224
|
const _hoisted_2$q = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
43885
44225
|
fill: "currentColor",
|
|
43886
|
-
d: "
|
|
44226
|
+
d: "M13.5 15.5H10v-3h3.5A1.5 1.5 0 0 1 15 14a1.5 1.5 0 0 1-1.5 1.5m-3.5-9h3A1.5 1.5 0 0 1 14.5 8A1.5 1.5 0 0 1 13 9.5h-3m5.6 1.29c.97-.68 1.65-1.79 1.65-2.79c0-2.26-1.75-4-4-4H7v14h7.04c2.1 0 3.71-1.7 3.71-3.79c0-1.52-.86-2.82-2.15-3.42Z"
|
|
43887
44227
|
}, null, -1);
|
|
43888
44228
|
const _hoisted_3$q = [
|
|
43889
44229
|
_hoisted_2$q
|
|
@@ -43891,7 +44231,7 @@ img.ProseMirror-separator {
|
|
|
43891
44231
|
function render$q(_ctx, _cache) {
|
|
43892
44232
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$q, _hoisted_3$q);
|
|
43893
44233
|
}
|
|
43894
|
-
const
|
|
44234
|
+
const MdiFormatBold = { name: "mdi-format-bold", render: render$q };
|
|
43895
44235
|
const _hoisted_1$p = {
|
|
43896
44236
|
viewBox: "0 0 24 24",
|
|
43897
44237
|
width: "1.2em",
|
|
@@ -43899,7 +44239,7 @@ img.ProseMirror-separator {
|
|
|
43899
44239
|
};
|
|
43900
44240
|
const _hoisted_2$p = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
43901
44241
|
fill: "currentColor",
|
|
43902
|
-
d: "
|
|
44242
|
+
d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4h-8Z"
|
|
43903
44243
|
}, null, -1);
|
|
43904
44244
|
const _hoisted_3$p = [
|
|
43905
44245
|
_hoisted_2$p
|
|
@@ -43907,7 +44247,7 @@ img.ProseMirror-separator {
|
|
|
43907
44247
|
function render$p(_ctx, _cache) {
|
|
43908
44248
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$p, _hoisted_3$p);
|
|
43909
44249
|
}
|
|
43910
|
-
const
|
|
44250
|
+
const MdiFormatItalic = { name: "mdi-format-italic", render: render$p };
|
|
43911
44251
|
const _hoisted_1$o = {
|
|
43912
44252
|
viewBox: "0 0 24 24",
|
|
43913
44253
|
width: "1.2em",
|
|
@@ -43915,7 +44255,7 @@ img.ProseMirror-separator {
|
|
|
43915
44255
|
};
|
|
43916
44256
|
const _hoisted_2$o = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
43917
44257
|
fill: "currentColor",
|
|
43918
|
-
d: "M3
|
|
44258
|
+
d: "M3 14h18v-2H3m2-8v3h5v3h4V7h5V4m-9 15h4v-3h-4v3Z"
|
|
43919
44259
|
}, null, -1);
|
|
43920
44260
|
const _hoisted_3$o = [
|
|
43921
44261
|
_hoisted_2$o
|
|
@@ -43923,7 +44263,7 @@ img.ProseMirror-separator {
|
|
|
43923
44263
|
function render$o(_ctx, _cache) {
|
|
43924
44264
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$o, _hoisted_3$o);
|
|
43925
44265
|
}
|
|
43926
|
-
const
|
|
44266
|
+
const MdiFormatStrikethrough = { name: "mdi-format-strikethrough", render: render$o };
|
|
43927
44267
|
const _hoisted_1$n = {
|
|
43928
44268
|
viewBox: "0 0 24 24",
|
|
43929
44269
|
width: "1.2em",
|
|
@@ -43931,7 +44271,7 @@ img.ProseMirror-separator {
|
|
|
43931
44271
|
};
|
|
43932
44272
|
const _hoisted_2$n = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
43933
44273
|
fill: "currentColor",
|
|
43934
|
-
d: "
|
|
44274
|
+
d: "M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m10 4h2.31l.32-3h2l-.32 3h2l.32-3h2l-.32 3H23v2h-1.9l-.2 2H23v2h-2.31l-.32 3h-2l.32-3h-2l-.32 3h-2l.32-3H13v-2h1.9l.2-2H13V8m4.1 2l-.2 2h2l.2-2h-2Z"
|
|
43935
44275
|
}, null, -1);
|
|
43936
44276
|
const _hoisted_3$n = [
|
|
43937
44277
|
_hoisted_2$n
|
|
@@ -43939,7 +44279,7 @@ img.ProseMirror-separator {
|
|
|
43939
44279
|
function render$n(_ctx, _cache) {
|
|
43940
44280
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$n, _hoisted_3$n);
|
|
43941
44281
|
}
|
|
43942
|
-
const
|
|
44282
|
+
const MdiFormatHeaderPound = { name: "mdi-format-header-pound", render: render$n };
|
|
43943
44283
|
const _hoisted_1$m = {
|
|
43944
44284
|
viewBox: "0 0 24 24",
|
|
43945
44285
|
width: "1.2em",
|
|
@@ -44123,7 +44463,7 @@ img.ProseMirror-separator {
|
|
|
44123
44463
|
};
|
|
44124
44464
|
const _hoisted_2$b = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44125
44465
|
fill: "currentColor",
|
|
44126
|
-
d: "
|
|
44466
|
+
d: "M18 14h2v3h3v2h-3v3h-2v-3h-3v-2h3v-3M4 3h14a2 2 0 0 1 2 2v7.08a6.01 6.01 0 0 0-4.32.92H12v4h1.08c-.11.68-.11 1.35 0 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m0 4v4h6V7H4m8 0v4h6V7h-6m-8 6v4h6v-4H4Z"
|
|
44127
44467
|
}, null, -1);
|
|
44128
44468
|
const _hoisted_3$b = [
|
|
44129
44469
|
_hoisted_2$b
|
|
@@ -44131,7 +44471,7 @@ img.ProseMirror-separator {
|
|
|
44131
44471
|
function render$b(_ctx, _cache) {
|
|
44132
44472
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$b, _hoisted_3$b);
|
|
44133
44473
|
}
|
|
44134
|
-
const
|
|
44474
|
+
const MdiTablePlus = { name: "mdi-table-plus", render: render$b };
|
|
44135
44475
|
const _hoisted_1$a = {
|
|
44136
44476
|
viewBox: "0 0 24 24",
|
|
44137
44477
|
width: "1.2em",
|
|
@@ -44139,7 +44479,7 @@ img.ProseMirror-separator {
|
|
|
44139
44479
|
};
|
|
44140
44480
|
const _hoisted_2$a = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44141
44481
|
fill: "currentColor",
|
|
44142
|
-
d: "
|
|
44482
|
+
d: "M13 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h9V2h-9m7 8v4h-7v-4h7m0 6v4h-7v-4h7m0-12v4h-7V4h7M9 11H6V8H4v3H1v2h3v3h2v-3h3v-2Z"
|
|
44143
44483
|
}, null, -1);
|
|
44144
44484
|
const _hoisted_3$a = [
|
|
44145
44485
|
_hoisted_2$a
|
|
@@ -44147,7 +44487,7 @@ img.ProseMirror-separator {
|
|
|
44147
44487
|
function render$a(_ctx, _cache) {
|
|
44148
44488
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$a, _hoisted_3$a);
|
|
44149
44489
|
}
|
|
44150
|
-
const
|
|
44490
|
+
const MdiTableColumnPlusBefore = { name: "mdi-table-column-plus-before", render: render$a };
|
|
44151
44491
|
const _hoisted_1$9 = {
|
|
44152
44492
|
viewBox: "0 0 24 24",
|
|
44153
44493
|
width: "1.2em",
|
|
@@ -44155,7 +44495,7 @@ img.ProseMirror-separator {
|
|
|
44155
44495
|
};
|
|
44156
44496
|
const _hoisted_2$9 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44157
44497
|
fill: "currentColor",
|
|
44158
|
-
d: "
|
|
44498
|
+
d: "M11 2a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2V2h9m-7 8v4h7v-4H4m0 6v4h7v-4H4M4 4v4h7V4H4m11 7h3V8h2v3h3v2h-3v3h-2v-3h-3v-2Z"
|
|
44159
44499
|
}, null, -1);
|
|
44160
44500
|
const _hoisted_3$9 = [
|
|
44161
44501
|
_hoisted_2$9
|
|
@@ -44163,7 +44503,7 @@ img.ProseMirror-separator {
|
|
|
44163
44503
|
function render$9(_ctx, _cache) {
|
|
44164
44504
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$9, _hoisted_3$9);
|
|
44165
44505
|
}
|
|
44166
|
-
const
|
|
44506
|
+
const MdiTableColumnPlusAfter = { name: "mdi-table-column-plus-after", render: render$9 };
|
|
44167
44507
|
const _hoisted_1$8 = {
|
|
44168
44508
|
viewBox: "0 0 24 24",
|
|
44169
44509
|
width: "1.2em",
|
|
@@ -44171,7 +44511,7 @@ img.ProseMirror-separator {
|
|
|
44171
44511
|
};
|
|
44172
44512
|
const _hoisted_2$8 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44173
44513
|
fill: "currentColor",
|
|
44174
|
-
d: "
|
|
44514
|
+
d: "M22 10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V3h2v2h4V3h2v2h4V3h2v2h4V3h2v7M4 10h4V7H4v3m6 0h4V7h-4v3m10 0V7h-4v3h4m-9 4h2v3h3v2h-3v3h-2v-3H8v-2h3v-3Z"
|
|
44175
44515
|
}, null, -1);
|
|
44176
44516
|
const _hoisted_3$8 = [
|
|
44177
44517
|
_hoisted_2$8
|
|
@@ -44179,7 +44519,7 @@ img.ProseMirror-separator {
|
|
|
44179
44519
|
function render$8(_ctx, _cache) {
|
|
44180
44520
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$8, _hoisted_3$8);
|
|
44181
44521
|
}
|
|
44182
|
-
const
|
|
44522
|
+
const MdiTableRowPlusAfter = { name: "mdi-table-row-plus-after", render: render$8 };
|
|
44183
44523
|
const _hoisted_1$7 = {
|
|
44184
44524
|
viewBox: "0 0 24 24",
|
|
44185
44525
|
width: "1.2em",
|
|
@@ -44187,7 +44527,7 @@ img.ProseMirror-separator {
|
|
|
44187
44527
|
};
|
|
44188
44528
|
const _hoisted_2$7 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44189
44529
|
fill: "currentColor",
|
|
44190
|
-
d: "M22
|
|
44530
|
+
d: "M22 14a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7h2v-2h4v2h2v-2h4v2h2v-2h4v2h2v-7M4 14h4v3H4v-3m6 0h4v3h-4v-3m10 0v3h-4v-3h4m-9-4h2V7h3V5h-3V2h-2v3H8v2h3v3Z"
|
|
44191
44531
|
}, null, -1);
|
|
44192
44532
|
const _hoisted_3$7 = [
|
|
44193
44533
|
_hoisted_2$7
|
|
@@ -44195,7 +44535,7 @@ img.ProseMirror-separator {
|
|
|
44195
44535
|
function render$7(_ctx, _cache) {
|
|
44196
44536
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$7, _hoisted_3$7);
|
|
44197
44537
|
}
|
|
44198
|
-
const
|
|
44538
|
+
const MdiTableRowPlusBefore = { name: "mdi-table-row-plus-before", render: render$7 };
|
|
44199
44539
|
const _hoisted_1$6 = {
|
|
44200
44540
|
viewBox: "0 0 24 24",
|
|
44201
44541
|
width: "1.2em",
|
|
@@ -44203,7 +44543,7 @@ img.ProseMirror-separator {
|
|
|
44203
44543
|
};
|
|
44204
44544
|
const _hoisted_2$6 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44205
44545
|
fill: "currentColor",
|
|
44206
|
-
d: "
|
|
44546
|
+
d: "M4 2h7a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m0 8v4h7v-4H4m0 6v4h7v-4H4M4 4v4h7V4H4m13.59 8L15 9.41L16.41 8L19 10.59L21.59 8L23 9.41L20.41 12L23 14.59L21.59 16L19 13.41L16.41 16L15 14.59L17.59 12Z"
|
|
44207
44547
|
}, null, -1);
|
|
44208
44548
|
const _hoisted_3$6 = [
|
|
44209
44549
|
_hoisted_2$6
|
|
@@ -44211,7 +44551,7 @@ img.ProseMirror-separator {
|
|
|
44211
44551
|
function render$6(_ctx, _cache) {
|
|
44212
44552
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$6, _hoisted_3$6);
|
|
44213
44553
|
}
|
|
44214
|
-
const
|
|
44554
|
+
const MdiTableColumnRemove = { name: "mdi-table-column-remove", render: render$6 };
|
|
44215
44555
|
const _hoisted_1$5 = {
|
|
44216
44556
|
viewBox: "0 0 24 24",
|
|
44217
44557
|
width: "1.2em",
|
|
@@ -44219,7 +44559,7 @@ img.ProseMirror-separator {
|
|
|
44219
44559
|
};
|
|
44220
44560
|
const _hoisted_2$5 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44221
44561
|
fill: "currentColor",
|
|
44222
|
-
d: "
|
|
44562
|
+
d: "M9.41 13L12 15.59L14.59 13L16 14.41L13.41 17L16 19.59L14.59 21L12 18.41L9.41 21L8 19.59L10.59 17L8 14.41L9.41 13M22 9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3M4 9h4V6H4v3m6 0h4V6h-4v3m6 0h4V6h-4v3Z"
|
|
44223
44563
|
}, null, -1);
|
|
44224
44564
|
const _hoisted_3$5 = [
|
|
44225
44565
|
_hoisted_2$5
|
|
@@ -44227,7 +44567,7 @@ img.ProseMirror-separator {
|
|
|
44227
44567
|
function render$5(_ctx, _cache) {
|
|
44228
44568
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$5, _hoisted_3$5);
|
|
44229
44569
|
}
|
|
44230
|
-
const
|
|
44570
|
+
const MdiTableRowRemove = { name: "mdi-table-row-remove", render: render$5 };
|
|
44231
44571
|
const _hoisted_1$4 = {
|
|
44232
44572
|
viewBox: "0 0 24 24",
|
|
44233
44573
|
width: "1.2em",
|
|
@@ -44235,7 +44575,7 @@ img.ProseMirror-separator {
|
|
|
44235
44575
|
};
|
|
44236
44576
|
const _hoisted_2$4 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44237
44577
|
fill: "currentColor",
|
|
44238
|
-
d: "
|
|
44578
|
+
d: "m15.46 15.88l1.42-1.42L19 16.59l2.12-2.13l1.42 1.42L20.41 18l2.13 2.12l-1.42 1.42L19 19.41l-2.12 2.13l-1.42-1.42L17.59 18l-2.13-2.12M4 3h14a2 2 0 0 1 2 2v7.08a6.01 6.01 0 0 0-4.32.92H12v4h1.08c-.11.68-.11 1.35 0 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m0 4v4h6V7H4m8 0v4h6V7h-6m-8 6v4h6v-4H4Z"
|
|
44239
44579
|
}, null, -1);
|
|
44240
44580
|
const _hoisted_3$4 = [
|
|
44241
44581
|
_hoisted_2$4
|
|
@@ -44243,7 +44583,7 @@ img.ProseMirror-separator {
|
|
|
44243
44583
|
function render$4(_ctx, _cache) {
|
|
44244
44584
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$4, _hoisted_3$4);
|
|
44245
44585
|
}
|
|
44246
|
-
const
|
|
44586
|
+
const MdiTableRemove = { name: "mdi-table-remove", render: render$4 };
|
|
44247
44587
|
const _hoisted_1$3 = {
|
|
44248
44588
|
viewBox: "0 0 24 24",
|
|
44249
44589
|
width: "1.2em",
|
|
@@ -44251,7 +44591,7 @@ img.ProseMirror-separator {
|
|
|
44251
44591
|
};
|
|
44252
44592
|
const _hoisted_2$3 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44253
44593
|
fill: "currentColor",
|
|
44254
|
-
d: "
|
|
44594
|
+
d: "M1 6v13a2 2 0 0 0 2 2h6V11h12V6a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2m2 0h4v3H3m4 10H3v-3h4m0-2H3v-3h4m2-2V6h4v3m6 0h-4V6h4m-2 10a1 1 0 1 1-1 1a1 1 0 0 1 1-1m0-3a6.45 6.45 0 0 1 6 4a6.5 6.5 0 0 1-12 0a6.45 6.45 0 0 1 6-4m0 1.5a2.5 2.5 0 1 0 2.5 2.5a2.5 2.5 0 0 0-2.5-2.5"
|
|
44255
44595
|
}, null, -1);
|
|
44256
44596
|
const _hoisted_3$3 = [
|
|
44257
44597
|
_hoisted_2$3
|
|
@@ -44259,7 +44599,7 @@ img.ProseMirror-separator {
|
|
|
44259
44599
|
function render$3(_ctx, _cache) {
|
|
44260
44600
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$3, _hoisted_3$3);
|
|
44261
44601
|
}
|
|
44262
|
-
const
|
|
44602
|
+
const MdiTableHeadersEye = { name: "mdi-table-headers-eye", render: render$3 };
|
|
44263
44603
|
const _hoisted_1$2 = {
|
|
44264
44604
|
viewBox: "0 0 24 24",
|
|
44265
44605
|
width: "1.2em",
|
|
@@ -44267,7 +44607,7 @@ img.ProseMirror-separator {
|
|
|
44267
44607
|
};
|
|
44268
44608
|
const _hoisted_2$2 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44269
44609
|
fill: "currentColor",
|
|
44270
|
-
d: "
|
|
44610
|
+
d: "M5 10H3V4h8v2H5v4m14 8h-6v2h8v-6h-2v4M5 18v-4H3v6h8v-2H5M21 4h-8v2h6v4h2V4M8 13v2l3-3l-3-3v2H3v2h5m8-2V9l-3 3l3 3v-2h5v-2h-5Z"
|
|
44271
44611
|
}, null, -1);
|
|
44272
44612
|
const _hoisted_3$2 = [
|
|
44273
44613
|
_hoisted_2$2
|
|
@@ -44275,7 +44615,7 @@ img.ProseMirror-separator {
|
|
|
44275
44615
|
function render$2(_ctx, _cache) {
|
|
44276
44616
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$2, _hoisted_3$2);
|
|
44277
44617
|
}
|
|
44278
|
-
const
|
|
44618
|
+
const MdiTableMergeCells = { name: "mdi-table-merge-cells", render: render$2 };
|
|
44279
44619
|
const _hoisted_1$1 = {
|
|
44280
44620
|
viewBox: "0 0 24 24",
|
|
44281
44621
|
width: "1.2em",
|
|
@@ -44283,7 +44623,7 @@ img.ProseMirror-separator {
|
|
|
44283
44623
|
};
|
|
44284
44624
|
const _hoisted_2$1 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44285
44625
|
fill: "currentColor",
|
|
44286
|
-
d: "
|
|
44626
|
+
d: "M19 14h2v6H3v-6h2v4h14v-4M3 4v6h2V6h14v4h2V4H3m8 7v2H8v2l-3-3l3-3v2h3m5 0V9l3 3l-3 3v-2h-3v-2h3Z"
|
|
44287
44627
|
}, null, -1);
|
|
44288
44628
|
const _hoisted_3$1 = [
|
|
44289
44629
|
_hoisted_2$1
|
|
@@ -44291,7 +44631,7 @@ img.ProseMirror-separator {
|
|
|
44291
44631
|
function render$1(_ctx, _cache) {
|
|
44292
44632
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$1, _hoisted_3$1);
|
|
44293
44633
|
}
|
|
44294
|
-
const
|
|
44634
|
+
const MdiTableSplitCell = { name: "mdi-table-split-cell", render: render$1 };
|
|
44295
44635
|
const _hoisted_1 = {
|
|
44296
44636
|
viewBox: "0 0 24 24",
|
|
44297
44637
|
width: "1.2em",
|
|
@@ -44299,7 +44639,7 @@ img.ProseMirror-separator {
|
|
|
44299
44639
|
};
|
|
44300
44640
|
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
44301
44641
|
fill: "currentColor",
|
|
44302
|
-
d: "
|
|
44642
|
+
d: "m4 17l2.75-2.75l-.03-.02c-.58-.59-.58-1.54 0-2.12l4.74-4.74l4.24 4.24l-4.74 4.74c-.57.58-1.5.58-2.09.02l-.63.63H4M15.91 2.91c.59-.58 1.54-.58 2.12 0l2.13 2.12c.58.59.58 1.54 0 2.13l-3.3 3.29l-4.24-4.24l3.29-3.3Z"
|
|
44303
44643
|
}, null, -1);
|
|
44304
44644
|
const _hoisted_3 = [
|
|
44305
44645
|
_hoisted_2
|
|
@@ -44307,12 +44647,12 @@ img.ProseMirror-separator {
|
|
|
44307
44647
|
function render(_ctx, _cache) {
|
|
44308
44648
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
44309
44649
|
}
|
|
44310
|
-
const
|
|
44650
|
+
const MdiFormatColorHighlight = { name: "mdi-format-color-highlight", render };
|
|
44311
44651
|
function UndoMenuItem(editor) {
|
|
44312
44652
|
return {
|
|
44313
44653
|
type: "button",
|
|
44314
|
-
icon: MdiUndoVariant,
|
|
44315
|
-
title: "
|
|
44654
|
+
icon: vue.markRaw(MdiUndoVariant),
|
|
44655
|
+
title: "\u64A4\u9500",
|
|
44316
44656
|
action: () => editor.chain().undo().run(),
|
|
44317
44657
|
isActive: () => false
|
|
44318
44658
|
};
|
|
@@ -44320,8 +44660,8 @@ img.ProseMirror-separator {
|
|
|
44320
44660
|
function RedoMenuItem(editor) {
|
|
44321
44661
|
return {
|
|
44322
44662
|
type: "button",
|
|
44323
|
-
icon: MdiRedoVariant,
|
|
44324
|
-
title: "
|
|
44663
|
+
icon: vue.markRaw(MdiRedoVariant),
|
|
44664
|
+
title: "\u6062\u590D",
|
|
44325
44665
|
action: () => editor.chain().redo().run(),
|
|
44326
44666
|
isActive: () => false
|
|
44327
44667
|
};
|
|
@@ -44329,8 +44669,8 @@ img.ProseMirror-separator {
|
|
|
44329
44669
|
function BoldMenuItem(editor) {
|
|
44330
44670
|
return {
|
|
44331
44671
|
type: "button",
|
|
44332
|
-
icon: MdiFormatBold,
|
|
44333
|
-
title: "
|
|
44672
|
+
icon: vue.markRaw(MdiFormatBold),
|
|
44673
|
+
title: "\u7C97\u4F53",
|
|
44334
44674
|
action: () => editor.chain().focus().toggleBold().run(),
|
|
44335
44675
|
isActive: () => editor.isActive("bold")
|
|
44336
44676
|
};
|
|
@@ -44338,8 +44678,8 @@ img.ProseMirror-separator {
|
|
|
44338
44678
|
function ItalicMenuItem(editor) {
|
|
44339
44679
|
return {
|
|
44340
44680
|
type: "button",
|
|
44341
|
-
icon: MdiFormatItalic,
|
|
44342
|
-
title: "
|
|
44681
|
+
icon: vue.markRaw(MdiFormatItalic),
|
|
44682
|
+
title: "\u659C\u4F53",
|
|
44343
44683
|
action: () => editor.chain().focus().toggleItalic().run(),
|
|
44344
44684
|
isActive: () => editor.isActive("italic")
|
|
44345
44685
|
};
|
|
@@ -44347,8 +44687,8 @@ img.ProseMirror-separator {
|
|
|
44347
44687
|
function UnderlineMenuItem(editor) {
|
|
44348
44688
|
return {
|
|
44349
44689
|
type: "button",
|
|
44350
|
-
icon: MdiFormatUnderline,
|
|
44351
|
-
title: "
|
|
44690
|
+
icon: vue.markRaw(MdiFormatUnderline),
|
|
44691
|
+
title: "\u4E0B\u5212\u7EBF",
|
|
44352
44692
|
action: () => editor.chain().focus().toggleUnderline().run(),
|
|
44353
44693
|
isActive: () => editor.isActive("underline")
|
|
44354
44694
|
};
|
|
@@ -44356,8 +44696,8 @@ img.ProseMirror-separator {
|
|
|
44356
44696
|
function StrikeMenuItem(editor) {
|
|
44357
44697
|
return {
|
|
44358
44698
|
type: "button",
|
|
44359
|
-
icon: MdiFormatStrikethrough,
|
|
44360
|
-
title: "
|
|
44699
|
+
icon: vue.markRaw(MdiFormatStrikethrough),
|
|
44700
|
+
title: "\u5220\u9664\u7EBF",
|
|
44361
44701
|
action: () => editor.chain().focus().toggleStrike().run(),
|
|
44362
44702
|
isActive: () => editor.isActive("strike")
|
|
44363
44703
|
};
|
|
@@ -44365,8 +44705,8 @@ img.ProseMirror-separator {
|
|
|
44365
44705
|
function QuoteMenuItem(editor) {
|
|
44366
44706
|
return {
|
|
44367
44707
|
type: "button",
|
|
44368
|
-
icon: MdiFormatQuoteOpen,
|
|
44369
|
-
title: "
|
|
44708
|
+
icon: vue.markRaw(MdiFormatQuoteOpen),
|
|
44709
|
+
title: "\u5F15\u7528",
|
|
44370
44710
|
action: () => editor.chain().focus().toggleBlockquote().run(),
|
|
44371
44711
|
isActive: () => editor.isActive("blockquote")
|
|
44372
44712
|
};
|
|
@@ -44374,8 +44714,8 @@ img.ProseMirror-separator {
|
|
|
44374
44714
|
function CodeMenuItem(editor) {
|
|
44375
44715
|
return {
|
|
44376
44716
|
type: "button",
|
|
44377
|
-
icon: MdiCodeTags,
|
|
44378
|
-
title: "
|
|
44717
|
+
icon: vue.markRaw(MdiCodeTags),
|
|
44718
|
+
title: "\u884C\u5185\u4EE3\u7801",
|
|
44379
44719
|
action: () => editor.chain().focus().toggleCode().run(),
|
|
44380
44720
|
isActive: () => editor.isActive("code")
|
|
44381
44721
|
};
|
|
@@ -44383,8 +44723,8 @@ img.ProseMirror-separator {
|
|
|
44383
44723
|
function SuperScriptMenuItem(editor) {
|
|
44384
44724
|
return {
|
|
44385
44725
|
type: "button",
|
|
44386
|
-
icon: MdiFormatSuperscript,
|
|
44387
|
-
title: "
|
|
44726
|
+
icon: vue.markRaw(MdiFormatSuperscript),
|
|
44727
|
+
title: "\u4E0A\u89D2\u6807",
|
|
44388
44728
|
action: () => editor.chain().focus().toggleSuperscript().run(),
|
|
44389
44729
|
isActive: () => editor.isActive("superscript")
|
|
44390
44730
|
};
|
|
@@ -44392,8 +44732,8 @@ img.ProseMirror-separator {
|
|
|
44392
44732
|
function SubScriptMenuItem(editor) {
|
|
44393
44733
|
return {
|
|
44394
44734
|
type: "button",
|
|
44395
|
-
icon: MdiFormatSubscript,
|
|
44396
|
-
title: "
|
|
44735
|
+
icon: vue.markRaw(MdiFormatSubscript),
|
|
44736
|
+
title: "\u4E0B\u89D2\u6807",
|
|
44397
44737
|
action: () => editor.chain().focus().toggleSubscript().run(),
|
|
44398
44738
|
isActive: () => editor.isActive("subscript")
|
|
44399
44739
|
};
|
|
@@ -44401,8 +44741,8 @@ img.ProseMirror-separator {
|
|
|
44401
44741
|
function CodeBlockMenuItem(editor) {
|
|
44402
44742
|
return {
|
|
44403
44743
|
type: "button",
|
|
44404
|
-
icon: MdiCodeBracesBox,
|
|
44405
|
-
title: "
|
|
44744
|
+
icon: vue.markRaw(MdiCodeBracesBox),
|
|
44745
|
+
title: "\u4EE3\u7801\u5757",
|
|
44406
44746
|
action: () => editor.chain().focus().toggleCodeBlock().run(),
|
|
44407
44747
|
isActive: () => editor.isActive("codeBlock")
|
|
44408
44748
|
};
|
|
@@ -44410,55 +44750,55 @@ img.ProseMirror-separator {
|
|
|
44410
44750
|
function HeadingMenuItem(editor) {
|
|
44411
44751
|
return {
|
|
44412
44752
|
type: "button",
|
|
44413
|
-
icon: MdiFormatHeaderPound,
|
|
44414
|
-
title: "\
|
|
44753
|
+
icon: vue.markRaw(MdiFormatHeaderPound),
|
|
44754
|
+
title: "\u6587\u672C\u7C7B\u578B",
|
|
44415
44755
|
isActive: () => editor.isActive("heading") || editor.isActive("paragraph"),
|
|
44416
44756
|
children: [
|
|
44417
44757
|
{
|
|
44418
44758
|
type: "button",
|
|
44419
|
-
icon: MdiFormatParagraph,
|
|
44759
|
+
icon: vue.markRaw(MdiFormatParagraph),
|
|
44420
44760
|
title: "\u666E\u901A\u6587\u672C",
|
|
44421
44761
|
action: () => editor.chain().focus().setParagraph().run(),
|
|
44422
44762
|
isActive: () => editor.isActive("paragraph")
|
|
44423
44763
|
},
|
|
44424
44764
|
{
|
|
44425
44765
|
type: "button",
|
|
44426
|
-
icon: MdiFormatHeader1,
|
|
44766
|
+
icon: vue.markRaw(MdiFormatHeader1),
|
|
44427
44767
|
title: "\u6807\u9898 1",
|
|
44428
44768
|
action: () => editor.chain().focus().toggleHeading({ level: 1 }).run(),
|
|
44429
44769
|
isActive: () => editor.isActive("heading", { level: 1 })
|
|
44430
44770
|
},
|
|
44431
44771
|
{
|
|
44432
44772
|
type: "button",
|
|
44433
|
-
icon: MdiFormatHeader2,
|
|
44773
|
+
icon: vue.markRaw(MdiFormatHeader2),
|
|
44434
44774
|
title: "\u6807\u9898 2",
|
|
44435
44775
|
action: () => editor.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
44436
44776
|
isActive: () => editor.isActive("heading", { level: 2 })
|
|
44437
44777
|
},
|
|
44438
44778
|
{
|
|
44439
44779
|
type: "button",
|
|
44440
|
-
icon: MdiFormatHeader3,
|
|
44780
|
+
icon: vue.markRaw(MdiFormatHeader3),
|
|
44441
44781
|
title: "\u6807\u9898 3",
|
|
44442
44782
|
action: () => editor.chain().focus().toggleHeading({ level: 3 }).run(),
|
|
44443
44783
|
isActive: () => editor.isActive("heading", { level: 3 })
|
|
44444
44784
|
},
|
|
44445
44785
|
{
|
|
44446
44786
|
type: "button",
|
|
44447
|
-
icon: MdiFormatHeader4,
|
|
44787
|
+
icon: vue.markRaw(MdiFormatHeader4),
|
|
44448
44788
|
title: "\u6807\u9898 4",
|
|
44449
44789
|
action: () => editor.chain().focus().toggleHeading({ level: 4 }).run(),
|
|
44450
44790
|
isActive: () => editor.isActive("heading", { level: 4 })
|
|
44451
44791
|
},
|
|
44452
44792
|
{
|
|
44453
44793
|
type: "button",
|
|
44454
|
-
icon: MdiFormatHeader5,
|
|
44794
|
+
icon: vue.markRaw(MdiFormatHeader5),
|
|
44455
44795
|
title: "\u6807\u9898 5",
|
|
44456
44796
|
action: () => editor.chain().focus().toggleHeading({ level: 5 }).run(),
|
|
44457
44797
|
isActive: () => editor.isActive("heading", { level: 5 })
|
|
44458
44798
|
},
|
|
44459
44799
|
{
|
|
44460
44800
|
type: "button",
|
|
44461
|
-
icon: MdiFormatHeader6,
|
|
44801
|
+
icon: vue.markRaw(MdiFormatHeader6),
|
|
44462
44802
|
title: "\u6807\u9898 6",
|
|
44463
44803
|
action: () => editor.chain().focus().toggleHeading({ level: 6 }).run(),
|
|
44464
44804
|
isActive: () => editor.isActive("heading", { level: 6 })
|
|
@@ -44469,8 +44809,8 @@ img.ProseMirror-separator {
|
|
|
44469
44809
|
function AlignLeftMenuItem(editor) {
|
|
44470
44810
|
return {
|
|
44471
44811
|
type: "button",
|
|
44472
|
-
icon: MdiFormatAlignLeft,
|
|
44473
|
-
title: "
|
|
44812
|
+
icon: vue.markRaw(MdiFormatAlignLeft),
|
|
44813
|
+
title: "\u5DE6\u5BF9\u9F50",
|
|
44474
44814
|
action: () => editor.chain().focus().setTextAlign("left").run(),
|
|
44475
44815
|
isActive: () => editor.isActive({ textAlign: "left" })
|
|
44476
44816
|
};
|
|
@@ -44478,8 +44818,8 @@ img.ProseMirror-separator {
|
|
|
44478
44818
|
function AlignCenterMenuItem(editor) {
|
|
44479
44819
|
return {
|
|
44480
44820
|
type: "button",
|
|
44481
|
-
icon: MdiFormatAlignCenter,
|
|
44482
|
-
title: "
|
|
44821
|
+
icon: vue.markRaw(MdiFormatAlignCenter),
|
|
44822
|
+
title: "\u5C45\u4E2D",
|
|
44483
44823
|
action: () => editor.chain().focus().setTextAlign("center").run(),
|
|
44484
44824
|
isActive: () => editor.isActive({ textAlign: "center" })
|
|
44485
44825
|
};
|
|
@@ -44487,8 +44827,8 @@ img.ProseMirror-separator {
|
|
|
44487
44827
|
function AlignRightMenuItem(editor) {
|
|
44488
44828
|
return {
|
|
44489
44829
|
type: "button",
|
|
44490
|
-
icon: MdiFormatAlignRight,
|
|
44491
|
-
title: "
|
|
44830
|
+
icon: vue.markRaw(MdiFormatAlignRight),
|
|
44831
|
+
title: "\u53F3\u5BF9\u9F50",
|
|
44492
44832
|
action: () => editor.chain().focus().setTextAlign("right").run(),
|
|
44493
44833
|
isActive: () => editor.isActive({ textAlign: "right" })
|
|
44494
44834
|
};
|
|
@@ -44496,8 +44836,8 @@ img.ProseMirror-separator {
|
|
|
44496
44836
|
function AlignJustifyMenuItem(editor) {
|
|
44497
44837
|
return {
|
|
44498
44838
|
type: "button",
|
|
44499
|
-
icon: MdiFormatAlignJustify,
|
|
44500
|
-
title: "
|
|
44839
|
+
icon: vue.markRaw(MdiFormatAlignJustify),
|
|
44840
|
+
title: "\u4E24\u7AEF\u5BF9\u9F50",
|
|
44501
44841
|
action: () => editor.chain().focus().setTextAlign("justify").run(),
|
|
44502
44842
|
isActive: () => editor.isActive({ textAlign: "justify" })
|
|
44503
44843
|
};
|
|
@@ -44505,90 +44845,90 @@ img.ProseMirror-separator {
|
|
|
44505
44845
|
function TableMenuItem(editor) {
|
|
44506
44846
|
return {
|
|
44507
44847
|
type: "button",
|
|
44508
|
-
icon: MdiTable,
|
|
44848
|
+
icon: vue.markRaw(MdiTable),
|
|
44509
44849
|
title: "\u8868\u683C",
|
|
44510
44850
|
isActive: () => editor.isActive("heading"),
|
|
44511
44851
|
children: [
|
|
44512
44852
|
{
|
|
44513
44853
|
type: "button",
|
|
44514
|
-
icon: MdiTablePlus,
|
|
44854
|
+
icon: vue.markRaw(MdiTablePlus),
|
|
44515
44855
|
title: "\u63D2\u5165\u8868\u683C",
|
|
44516
44856
|
action: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run(),
|
|
44517
44857
|
isActive: () => false
|
|
44518
44858
|
},
|
|
44519
44859
|
{
|
|
44520
44860
|
type: "button",
|
|
44521
|
-
icon: MdiTableColumnPlusBefore,
|
|
44861
|
+
icon: vue.markRaw(MdiTableColumnPlusBefore),
|
|
44522
44862
|
title: "\u5411\u524D\u63D2\u5165\u5217",
|
|
44523
44863
|
action: () => editor.chain().focus().addColumnBefore().run(),
|
|
44524
44864
|
isActive: () => false
|
|
44525
44865
|
},
|
|
44526
44866
|
{
|
|
44527
44867
|
type: "button",
|
|
44528
|
-
icon: MdiTableColumnPlusAfter,
|
|
44868
|
+
icon: vue.markRaw(MdiTableColumnPlusAfter),
|
|
44529
44869
|
title: "\u5411\u540E\u63D2\u5165\u5217",
|
|
44530
44870
|
action: () => editor.chain().focus().addColumnAfter().run(),
|
|
44531
44871
|
isActive: () => false
|
|
44532
44872
|
},
|
|
44533
44873
|
{
|
|
44534
44874
|
type: "button",
|
|
44535
|
-
icon: MdiTableHeadersEye,
|
|
44875
|
+
icon: vue.markRaw(MdiTableHeadersEye),
|
|
44536
44876
|
title: "\u663E\u793A/\u9690\u85CF\u5217\u8868\u5934",
|
|
44537
44877
|
action: () => editor.chain().focus().toggleHeaderColumn().run(),
|
|
44538
44878
|
isActive: () => false
|
|
44539
44879
|
},
|
|
44540
44880
|
{
|
|
44541
44881
|
type: "button",
|
|
44542
|
-
icon: MdiTableColumnRemove,
|
|
44882
|
+
icon: vue.markRaw(MdiTableColumnRemove),
|
|
44543
44883
|
title: "\u5220\u9664\u5F53\u524D\u5217",
|
|
44544
44884
|
action: () => editor.chain().focus().deleteColumn().run(),
|
|
44545
44885
|
isActive: () => false
|
|
44546
44886
|
},
|
|
44547
44887
|
{
|
|
44548
44888
|
type: "button",
|
|
44549
|
-
icon: MdiTableRowPlusBefore,
|
|
44889
|
+
icon: vue.markRaw(MdiTableRowPlusBefore),
|
|
44550
44890
|
title: "\u5411\u4E0A\u63D2\u5165\u884C",
|
|
44551
44891
|
action: () => editor.chain().focus().addRowBefore().run(),
|
|
44552
44892
|
isActive: () => false
|
|
44553
44893
|
},
|
|
44554
44894
|
{
|
|
44555
44895
|
type: "button",
|
|
44556
|
-
icon: MdiTableRowPlusAfter,
|
|
44896
|
+
icon: vue.markRaw(MdiTableRowPlusAfter),
|
|
44557
44897
|
title: "\u5411\u4E0B\u63D2\u5165\u884C",
|
|
44558
44898
|
action: () => editor.chain().focus().addRowAfter().run(),
|
|
44559
44899
|
isActive: () => false
|
|
44560
44900
|
},
|
|
44561
44901
|
{
|
|
44562
44902
|
type: "button",
|
|
44563
|
-
icon: MdiTableHeadersEye,
|
|
44903
|
+
icon: vue.markRaw(MdiTableHeadersEye),
|
|
44564
44904
|
title: "\u663E\u793A/\u9690\u85CF\u884C\u8868\u5934",
|
|
44565
44905
|
action: () => editor.chain().focus().toggleHeaderRow().run(),
|
|
44566
44906
|
isActive: () => false
|
|
44567
44907
|
},
|
|
44568
44908
|
{
|
|
44569
44909
|
type: "button",
|
|
44570
|
-
icon: MdiTableRowRemove,
|
|
44910
|
+
icon: vue.markRaw(MdiTableRowRemove),
|
|
44571
44911
|
title: "\u5220\u9664\u5F53\u524D\u884C",
|
|
44572
44912
|
action: () => editor.chain().focus().deleteRow().run(),
|
|
44573
44913
|
isActive: () => false
|
|
44574
44914
|
},
|
|
44575
44915
|
{
|
|
44576
44916
|
type: "button",
|
|
44577
|
-
icon: MdiTableMergeCells,
|
|
44917
|
+
icon: vue.markRaw(MdiTableMergeCells),
|
|
44578
44918
|
title: "\u5408\u5E76\u5355\u5143\u683C",
|
|
44579
44919
|
action: () => editor.chain().focus().mergeCells().run(),
|
|
44580
44920
|
isActive: () => false
|
|
44581
44921
|
},
|
|
44582
44922
|
{
|
|
44583
44923
|
type: "button",
|
|
44584
|
-
icon: MdiTableSplitCell,
|
|
44924
|
+
icon: vue.markRaw(MdiTableSplitCell),
|
|
44585
44925
|
title: "\u5206\u5272\u5355\u5143\u683C",
|
|
44586
44926
|
action: () => editor.chain().focus().splitCell().run(),
|
|
44587
44927
|
isActive: () => false
|
|
44588
44928
|
},
|
|
44589
44929
|
{
|
|
44590
44930
|
type: "button",
|
|
44591
|
-
icon: MdiTableRemove,
|
|
44931
|
+
icon: vue.markRaw(MdiTableRemove),
|
|
44592
44932
|
title: "\u5220\u9664\u8868\u683C",
|
|
44593
44933
|
action: () => editor.chain().focus().deleteTable().run(),
|
|
44594
44934
|
isActive: () => false
|
|
@@ -44596,6 +44936,47 @@ img.ProseMirror-separator {
|
|
|
44596
44936
|
]
|
|
44597
44937
|
};
|
|
44598
44938
|
}
|
|
44939
|
+
function BulletListMenuItem(editor) {
|
|
44940
|
+
return {
|
|
44941
|
+
type: "button",
|
|
44942
|
+
icon: vue.markRaw(MdiFormatListBulleted),
|
|
44943
|
+
title: "\u65E0\u5E8F\u5217\u8868",
|
|
44944
|
+
action: () => editor.chain().focus().toggleBulletList().run(),
|
|
44945
|
+
isActive: () => editor.isActive("bulletList")
|
|
44946
|
+
};
|
|
44947
|
+
}
|
|
44948
|
+
function OrderedListMenuItem(editor) {
|
|
44949
|
+
return {
|
|
44950
|
+
type: "button",
|
|
44951
|
+
icon: vue.markRaw(MdiFormatListNumbered),
|
|
44952
|
+
title: "\u6709\u5E8F\u5217\u8868",
|
|
44953
|
+
action: () => editor.chain().focus().toggleOrderedList().run(),
|
|
44954
|
+
isActive: () => editor.isActive("orderedList")
|
|
44955
|
+
};
|
|
44956
|
+
}
|
|
44957
|
+
function TaskListMenuItem(editor) {
|
|
44958
|
+
return {
|
|
44959
|
+
type: "button",
|
|
44960
|
+
icon: vue.markRaw(MdiFormatListCheckbox),
|
|
44961
|
+
title: "\u4EFB\u52A1\u5217\u8868",
|
|
44962
|
+
action: () => editor.chain().focus().toggleTaskList().run(),
|
|
44963
|
+
isActive: () => editor.isActive("taskList")
|
|
44964
|
+
};
|
|
44965
|
+
}
|
|
44966
|
+
function HighlightMenuItem(editor) {
|
|
44967
|
+
return {
|
|
44968
|
+
type: "button",
|
|
44969
|
+
icon: vue.markRaw(MdiFormatColorHighlight),
|
|
44970
|
+
title: "\u9AD8\u4EAE",
|
|
44971
|
+
action: () => editor.chain().focus().toggleHighlight().run(),
|
|
44972
|
+
isActive: () => editor.isActive("highlight")
|
|
44973
|
+
};
|
|
44974
|
+
}
|
|
44975
|
+
function Separator() {
|
|
44976
|
+
return {
|
|
44977
|
+
type: "separator"
|
|
44978
|
+
};
|
|
44979
|
+
}
|
|
44599
44980
|
const plugin = {
|
|
44600
44981
|
install(app) {
|
|
44601
44982
|
app.component("RichTextEditor", _sfc_main$4);
|
|
@@ -44607,8 +44988,10 @@ img.ProseMirror-separator {
|
|
|
44607
44988
|
exports.AlignRightMenuItem = AlignRightMenuItem;
|
|
44608
44989
|
exports.BoldMenuItem = BoldMenuItem;
|
|
44609
44990
|
exports.BubbleMenu = BubbleMenu;
|
|
44991
|
+
exports.BulletListMenuItem = BulletListMenuItem;
|
|
44610
44992
|
exports.CodeBlockMenuItem = CodeBlockMenuItem;
|
|
44611
44993
|
exports.CodeMenuItem = CodeMenuItem;
|
|
44994
|
+
exports.CommandBulletList = CommandBulletList;
|
|
44612
44995
|
exports.CommandCodeBlock = CommandCodeBlock;
|
|
44613
44996
|
exports.CommandHeader1 = CommandHeader1;
|
|
44614
44997
|
exports.CommandHeader2 = CommandHeader2;
|
|
@@ -44618,7 +45001,11 @@ img.ProseMirror-separator {
|
|
|
44618
45001
|
exports.CommandHeader6 = CommandHeader6;
|
|
44619
45002
|
exports.CommandIframe = CommandIframe;
|
|
44620
45003
|
exports.CommandManager = CommandManager;
|
|
45004
|
+
exports.CommandOrderedList = CommandOrderedList;
|
|
45005
|
+
exports.CommandTable = CommandTable;
|
|
45006
|
+
exports.CommandTaskList = CommandTaskList;
|
|
44621
45007
|
exports.CommandsSuggestion = suggestion;
|
|
45008
|
+
exports.CommentParagraph = CommentParagraph;
|
|
44622
45009
|
exports.Editor = Editor;
|
|
44623
45010
|
exports.EditorContent = EditorContent;
|
|
44624
45011
|
exports.Extension = Extension;
|
|
@@ -44633,6 +45020,7 @@ img.ProseMirror-separator {
|
|
|
44633
45020
|
exports.ExtensionGapcursor = Gapcursor;
|
|
44634
45021
|
exports.ExtensionHardBreak = HardBreak;
|
|
44635
45022
|
exports.ExtensionHeading = Heading;
|
|
45023
|
+
exports.ExtensionHighlight = Highlight;
|
|
44636
45024
|
exports.ExtensionHistory = History;
|
|
44637
45025
|
exports.ExtensionHorizontalRule = HorizontalRule;
|
|
44638
45026
|
exports.ExtensionIframe = Iframe;
|
|
@@ -44654,6 +45042,7 @@ img.ProseMirror-separator {
|
|
|
44654
45042
|
exports.ExtensionUnderline = Underline;
|
|
44655
45043
|
exports.FloatingMenu = FloatingMenu;
|
|
44656
45044
|
exports.HeadingMenuItem = HeadingMenuItem;
|
|
45045
|
+
exports.HighlightMenuItem = HighlightMenuItem;
|
|
44657
45046
|
exports.InputRule = InputRule;
|
|
44658
45047
|
exports.ItalicMenuItem = ItalicMenuItem;
|
|
44659
45048
|
exports.Mark = Mark;
|
|
@@ -44661,14 +45050,17 @@ img.ProseMirror-separator {
|
|
|
44661
45050
|
exports.NodeView = NodeView;
|
|
44662
45051
|
exports.NodeViewContent = NodeViewContent;
|
|
44663
45052
|
exports.NodeViewWrapper = NodeViewWrapper;
|
|
45053
|
+
exports.OrderedListMenuItem = OrderedListMenuItem;
|
|
44664
45054
|
exports.PasteRule = PasteRule;
|
|
44665
45055
|
exports.QuoteMenuItem = QuoteMenuItem;
|
|
44666
45056
|
exports.RedoMenuItem = RedoMenuItem;
|
|
44667
45057
|
exports.RichTextEditor = _sfc_main$4;
|
|
45058
|
+
exports.Separator = Separator;
|
|
44668
45059
|
exports.StrikeMenuItem = StrikeMenuItem;
|
|
44669
45060
|
exports.SubScriptMenuItem = SubScriptMenuItem;
|
|
44670
45061
|
exports.SuperScriptMenuItem = SuperScriptMenuItem;
|
|
44671
45062
|
exports.TableMenuItem = TableMenuItem;
|
|
45063
|
+
exports.TaskListMenuItem = TaskListMenuItem;
|
|
44672
45064
|
exports.Tracker = Tracker;
|
|
44673
45065
|
exports.UnderlineMenuItem = UnderlineMenuItem;
|
|
44674
45066
|
exports.UndoMenuItem = UndoMenuItem;
|