pxx-vue-quill 1.0.92 → 1.0.93
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/vue-quill.umd.js +209 -184
- package/dist/vue-quill.umd.prod.js +2 -2
- package/package.json +1 -1
- package/dist/vue-quill.core.css +0 -391
- package/dist/vue-quill.core.prod.css +0 -1
- package/dist/vue-quill.extend.css +0 -225
- package/dist/vue-quill.extend.prod.css +0 -1
- package/dist/vue-quill.snow.css +0 -1142
- package/dist/vue-quill.snow.prod.css +0 -1
package/dist/vue-quill.umd.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) 2025 Pxx-Team
|
|
9
9
|
* Released under the MIT license
|
|
10
|
-
* Date: 2025-09-08T14:
|
|
10
|
+
* Date: 2025-09-08T14:33:05.870Z
|
|
11
11
|
*/
|
|
12
12
|
(function (global, factory) {
|
|
13
13
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -18683,44 +18683,52 @@
|
|
|
18683
18683
|
|
|
18684
18684
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(es);
|
|
18685
18685
|
|
|
18686
|
-
var Action
|
|
18686
|
+
var Action = {};
|
|
18687
18687
|
|
|
18688
|
-
|
|
18689
|
-
value: true
|
|
18690
|
-
});
|
|
18688
|
+
var hasRequiredAction;
|
|
18691
18689
|
|
|
18692
|
-
|
|
18690
|
+
function requireAction () {
|
|
18691
|
+
if (hasRequiredAction) return Action;
|
|
18692
|
+
hasRequiredAction = 1;
|
|
18693
18693
|
|
|
18694
|
-
|
|
18694
|
+
Object.defineProperty(Action, "__esModule", {
|
|
18695
|
+
value: true
|
|
18696
|
+
});
|
|
18695
18697
|
|
|
18696
|
-
|
|
18698
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
18697
18699
|
|
|
18698
|
-
|
|
18700
|
+
var _BlotFormatter = requireBlotFormatter();
|
|
18699
18701
|
|
|
18700
|
-
|
|
18702
|
+
_interopRequireDefault(_BlotFormatter);
|
|
18701
18703
|
|
|
18702
|
-
|
|
18703
|
-
function Action(formatter) {
|
|
18704
|
-
_classCallCheck$2(this, Action);
|
|
18704
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18705
18705
|
|
|
18706
|
-
|
|
18707
|
-
}
|
|
18706
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18708
18707
|
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
}, {
|
|
18713
|
-
key: 'onDestroy',
|
|
18714
|
-
value: function onDestroy() {}
|
|
18715
|
-
}, {
|
|
18716
|
-
key: 'onUpdate',
|
|
18717
|
-
value: function onUpdate() {}
|
|
18718
|
-
}]);
|
|
18708
|
+
var Action$1 = function () {
|
|
18709
|
+
function Action(formatter) {
|
|
18710
|
+
_classCallCheck(this, Action);
|
|
18719
18711
|
|
|
18720
|
-
|
|
18721
|
-
|
|
18712
|
+
this.formatter = formatter;
|
|
18713
|
+
}
|
|
18722
18714
|
|
|
18723
|
-
|
|
18715
|
+
_createClass(Action, [{
|
|
18716
|
+
key: 'onCreate',
|
|
18717
|
+
value: function onCreate() {}
|
|
18718
|
+
}, {
|
|
18719
|
+
key: 'onDestroy',
|
|
18720
|
+
value: function onDestroy() {}
|
|
18721
|
+
}, {
|
|
18722
|
+
key: 'onUpdate',
|
|
18723
|
+
value: function onUpdate() {}
|
|
18724
|
+
}]);
|
|
18725
|
+
|
|
18726
|
+
return Action;
|
|
18727
|
+
}();
|
|
18728
|
+
|
|
18729
|
+
Action.default = Action$1;
|
|
18730
|
+
return Action;
|
|
18731
|
+
}
|
|
18724
18732
|
|
|
18725
18733
|
var hasRequiredBlotFormatter;
|
|
18726
18734
|
|
|
@@ -18742,7 +18750,7 @@
|
|
|
18742
18750
|
|
|
18743
18751
|
var _Options2 = _interopRequireDefault(_Options);
|
|
18744
18752
|
|
|
18745
|
-
var _Action =
|
|
18753
|
+
var _Action = requireAction();
|
|
18746
18754
|
|
|
18747
18755
|
_interopRequireDefault(_Action);
|
|
18748
18756
|
|
|
@@ -18900,11 +18908,11 @@
|
|
|
18900
18908
|
value: true
|
|
18901
18909
|
});
|
|
18902
18910
|
|
|
18903
|
-
var _createClass
|
|
18911
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
18904
18912
|
|
|
18905
18913
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18906
18914
|
|
|
18907
|
-
function _classCallCheck
|
|
18915
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18908
18916
|
|
|
18909
18917
|
var LEFT_ALIGN = 'left';
|
|
18910
18918
|
var CENTER_ALIGN = 'center';
|
|
@@ -18915,7 +18923,7 @@
|
|
|
18915
18923
|
var _this = this,
|
|
18916
18924
|
_alignments;
|
|
18917
18925
|
|
|
18918
|
-
_classCallCheck
|
|
18926
|
+
_classCallCheck(this, DefaultAligner);
|
|
18919
18927
|
|
|
18920
18928
|
this.applyStyle = options.aligner.applyStyle;
|
|
18921
18929
|
this.alignAttribute = options.attribute;
|
|
@@ -18943,7 +18951,7 @@
|
|
|
18943
18951
|
}), _alignments);
|
|
18944
18952
|
}
|
|
18945
18953
|
|
|
18946
|
-
_createClass
|
|
18954
|
+
_createClass(DefaultAligner, [{
|
|
18947
18955
|
key: 'getAlignments',
|
|
18948
18956
|
value: function getAlignments() {
|
|
18949
18957
|
var _this2 = this;
|
|
@@ -19181,7 +19189,7 @@
|
|
|
19181
19189
|
|
|
19182
19190
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
19183
19191
|
|
|
19184
|
-
var _Action2 =
|
|
19192
|
+
var _Action2 = requireAction();
|
|
19185
19193
|
|
|
19186
19194
|
var _Action3 = _interopRequireDefault(_Action2);
|
|
19187
19195
|
|
|
@@ -19246,182 +19254,190 @@
|
|
|
19246
19254
|
return AlignAction;
|
|
19247
19255
|
}
|
|
19248
19256
|
|
|
19249
|
-
var ResizeAction
|
|
19257
|
+
var ResizeAction = {};
|
|
19250
19258
|
|
|
19251
|
-
|
|
19252
|
-
value: true
|
|
19253
|
-
});
|
|
19259
|
+
var hasRequiredResizeAction;
|
|
19254
19260
|
|
|
19255
|
-
|
|
19261
|
+
function requireResizeAction () {
|
|
19262
|
+
if (hasRequiredResizeAction) return ResizeAction;
|
|
19263
|
+
hasRequiredResizeAction = 1;
|
|
19256
19264
|
|
|
19257
|
-
|
|
19265
|
+
Object.defineProperty(ResizeAction, "__esModule", {
|
|
19266
|
+
value: true
|
|
19267
|
+
});
|
|
19258
19268
|
|
|
19259
|
-
|
|
19269
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
19260
19270
|
|
|
19261
|
-
|
|
19271
|
+
var _Action2 = requireAction();
|
|
19262
19272
|
|
|
19263
|
-
|
|
19273
|
+
var _Action3 = _interopRequireDefault(_Action2);
|
|
19264
19274
|
|
|
19265
|
-
|
|
19275
|
+
var _BlotFormatter = requireBlotFormatter();
|
|
19266
19276
|
|
|
19267
|
-
|
|
19277
|
+
_interopRequireDefault(_BlotFormatter);
|
|
19268
19278
|
|
|
19269
|
-
|
|
19279
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19270
19280
|
|
|
19271
|
-
|
|
19281
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19272
19282
|
|
|
19273
|
-
|
|
19274
|
-
_inherits(ResizeAction, _Action);
|
|
19283
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
19275
19284
|
|
|
19276
|
-
|
|
19277
|
-
_classCallCheck(this, ResizeAction);
|
|
19285
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
19278
19286
|
|
|
19279
|
-
|
|
19287
|
+
var ResizeAction$1 = function (_Action) {
|
|
19288
|
+
_inherits(ResizeAction, _Action);
|
|
19280
19289
|
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
return;
|
|
19284
|
-
}
|
|
19285
|
-
_this.dragHandle = event.target;
|
|
19286
|
-
_this.setCursor(_this.dragHandle.style.cursor);
|
|
19290
|
+
function ResizeAction(formatter) {
|
|
19291
|
+
_classCallCheck(this, ResizeAction);
|
|
19287
19292
|
|
|
19288
|
-
|
|
19289
|
-
return;
|
|
19290
|
-
}
|
|
19293
|
+
var _this = _possibleConstructorReturn(this, (ResizeAction.__proto__ || Object.getPrototypeOf(ResizeAction)).call(this, formatter));
|
|
19291
19294
|
|
|
19292
|
-
|
|
19293
|
-
|
|
19294
|
-
|
|
19295
|
-
|
|
19295
|
+
_this.onMouseDown = function (event) {
|
|
19296
|
+
if (!(event.target instanceof HTMLElement)) {
|
|
19297
|
+
return;
|
|
19298
|
+
}
|
|
19299
|
+
_this.dragHandle = event.target;
|
|
19300
|
+
_this.setCursor(_this.dragHandle.style.cursor);
|
|
19296
19301
|
|
|
19297
|
-
|
|
19302
|
+
if (!_this.formatter.currentSpec) {
|
|
19303
|
+
return;
|
|
19304
|
+
}
|
|
19298
19305
|
|
|
19299
|
-
|
|
19300
|
-
|
|
19301
|
-
|
|
19306
|
+
var target = _this.formatter.currentSpec.getTargetElement();
|
|
19307
|
+
if (!target) {
|
|
19308
|
+
return;
|
|
19309
|
+
}
|
|
19302
19310
|
|
|
19303
|
-
|
|
19304
|
-
document.addEventListener('mouseup', _this.onMouseUp);
|
|
19305
|
-
};
|
|
19311
|
+
var rect = target.getBoundingClientRect();
|
|
19306
19312
|
|
|
19307
|
-
|
|
19308
|
-
|
|
19309
|
-
|
|
19310
|
-
}
|
|
19313
|
+
_this.dragStartX = event.clientX;
|
|
19314
|
+
_this.preDragWidth = rect.width;
|
|
19315
|
+
_this.targetRatio = rect.height / rect.width;
|
|
19311
19316
|
|
|
19312
|
-
|
|
19313
|
-
|
|
19314
|
-
|
|
19315
|
-
}
|
|
19317
|
+
document.addEventListener('mousemove', _this.onDrag);
|
|
19318
|
+
document.addEventListener('mouseup', _this.onMouseUp);
|
|
19319
|
+
};
|
|
19316
19320
|
|
|
19317
|
-
|
|
19318
|
-
|
|
19321
|
+
_this.onDrag = function (event) {
|
|
19322
|
+
if (!_this.formatter.currentSpec) {
|
|
19323
|
+
return;
|
|
19324
|
+
}
|
|
19319
19325
|
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
}
|
|
19326
|
+
var target = _this.formatter.currentSpec.getTargetElement();
|
|
19327
|
+
if (!target) {
|
|
19328
|
+
return;
|
|
19329
|
+
}
|
|
19325
19330
|
|
|
19326
|
-
|
|
19331
|
+
var deltaX = event.clientX - _this.dragStartX;
|
|
19332
|
+
var newWidth = 0;
|
|
19327
19333
|
|
|
19328
|
-
|
|
19329
|
-
|
|
19334
|
+
if (_this.dragHandle === _this.topLeftHandle || _this.dragHandle === _this.bottomLeftHandle) {
|
|
19335
|
+
newWidth = Math.round(_this.preDragWidth - deltaX);
|
|
19336
|
+
} else {
|
|
19337
|
+
newWidth = Math.round(_this.preDragWidth + deltaX);
|
|
19338
|
+
}
|
|
19330
19339
|
|
|
19331
|
-
|
|
19332
|
-
};
|
|
19340
|
+
var newHeight = _this.targetRatio * newWidth;
|
|
19333
19341
|
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
document.removeEventListener('mousemove', _this.onDrag);
|
|
19337
|
-
document.removeEventListener('mouseup', _this.onMouseUp);
|
|
19338
|
-
};
|
|
19342
|
+
target.setAttribute('width', '' + newWidth);
|
|
19343
|
+
target.setAttribute('height', '' + newHeight);
|
|
19339
19344
|
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
_this.bottomRightHandle = _this.createHandle('bottom-right', 'nwse-resize');
|
|
19343
|
-
_this.bottomLeftHandle = _this.createHandle('bottom-left', 'nesw-resize');
|
|
19344
|
-
_this.dragHandle = null;
|
|
19345
|
-
_this.dragStartX = 0;
|
|
19346
|
-
_this.preDragWidth = 0;
|
|
19347
|
-
_this.targetRatio = 0;
|
|
19348
|
-
return _this;
|
|
19349
|
-
}
|
|
19345
|
+
_this.formatter.update();
|
|
19346
|
+
};
|
|
19350
19347
|
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
|
|
19355
|
-
|
|
19356
|
-
this.formatter.overlay.appendChild(this.bottomRightHandle);
|
|
19357
|
-
this.formatter.overlay.appendChild(this.bottomLeftHandle);
|
|
19348
|
+
_this.onMouseUp = function () {
|
|
19349
|
+
_this.setCursor('');
|
|
19350
|
+
document.removeEventListener('mousemove', _this.onDrag);
|
|
19351
|
+
document.removeEventListener('mouseup', _this.onMouseUp);
|
|
19352
|
+
};
|
|
19358
19353
|
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
}
|
|
19370
|
-
}, {
|
|
19371
|
-
key: 'createHandle',
|
|
19372
|
-
value: function createHandle(position, cursor) {
|
|
19373
|
-
var box = document.createElement('div');
|
|
19374
|
-
box.classList.add(this.formatter.options.resize.handleClassName);
|
|
19375
|
-
box.setAttribute('data-position', position);
|
|
19376
|
-
box.style.cursor = cursor;
|
|
19377
|
-
|
|
19378
|
-
if (this.formatter.options.resize.handleStyle) {
|
|
19379
|
-
Object.assign(box.style, this.formatter.options.resize.handleStyle);
|
|
19380
|
-
}
|
|
19354
|
+
_this.topLeftHandle = _this.createHandle('top-left', 'nwse-resize');
|
|
19355
|
+
_this.topRightHandle = _this.createHandle('top-right', 'nesw-resize');
|
|
19356
|
+
_this.bottomRightHandle = _this.createHandle('bottom-right', 'nwse-resize');
|
|
19357
|
+
_this.bottomLeftHandle = _this.createHandle('bottom-left', 'nesw-resize');
|
|
19358
|
+
_this.dragHandle = null;
|
|
19359
|
+
_this.dragStartX = 0;
|
|
19360
|
+
_this.preDragWidth = 0;
|
|
19361
|
+
_this.targetRatio = 0;
|
|
19362
|
+
return _this;
|
|
19363
|
+
}
|
|
19381
19364
|
|
|
19382
|
-
|
|
19365
|
+
_createClass(ResizeAction, [{
|
|
19366
|
+
key: 'onCreate',
|
|
19367
|
+
value: function onCreate() {
|
|
19368
|
+
this.formatter.overlay.appendChild(this.topLeftHandle);
|
|
19369
|
+
this.formatter.overlay.appendChild(this.topRightHandle);
|
|
19370
|
+
this.formatter.overlay.appendChild(this.bottomRightHandle);
|
|
19371
|
+
this.formatter.overlay.appendChild(this.bottomLeftHandle);
|
|
19383
19372
|
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19373
|
+
this.repositionHandles(this.formatter.options.resize.handleStyle);
|
|
19374
|
+
}
|
|
19375
|
+
}, {
|
|
19376
|
+
key: 'onDestroy',
|
|
19377
|
+
value: function onDestroy() {
|
|
19378
|
+
this.setCursor('');
|
|
19379
|
+
this.formatter.overlay.removeChild(this.topLeftHandle);
|
|
19380
|
+
this.formatter.overlay.removeChild(this.topRightHandle);
|
|
19381
|
+
this.formatter.overlay.removeChild(this.bottomRightHandle);
|
|
19382
|
+
this.formatter.overlay.removeChild(this.bottomLeftHandle);
|
|
19383
|
+
}
|
|
19384
|
+
}, {
|
|
19385
|
+
key: 'createHandle',
|
|
19386
|
+
value: function createHandle(position, cursor) {
|
|
19387
|
+
var box = document.createElement('div');
|
|
19388
|
+
box.classList.add(this.formatter.options.resize.handleClassName);
|
|
19389
|
+
box.setAttribute('data-position', position);
|
|
19390
|
+
box.style.cursor = cursor;
|
|
19391
|
+
|
|
19392
|
+
if (this.formatter.options.resize.handleStyle) {
|
|
19393
|
+
Object.assign(box.style, this.formatter.options.resize.handleStyle);
|
|
19394
|
+
}
|
|
19399
19395
|
|
|
19400
|
-
|
|
19401
|
-
Object.assign(this.topRightHandle.style, { right: handleXOffset, top: handleYOffset });
|
|
19402
|
-
Object.assign(this.bottomRightHandle.style, { right: handleXOffset, bottom: handleYOffset });
|
|
19403
|
-
Object.assign(this.bottomLeftHandle.style, { left: handleXOffset, bottom: handleYOffset });
|
|
19404
|
-
}
|
|
19405
|
-
}, {
|
|
19406
|
-
key: 'setCursor',
|
|
19407
|
-
value: function setCursor(value) {
|
|
19408
|
-
if (document.body) {
|
|
19409
|
-
document.body.style.cursor = value;
|
|
19410
|
-
}
|
|
19396
|
+
box.addEventListener('mousedown', this.onMouseDown);
|
|
19411
19397
|
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19398
|
+
return box;
|
|
19399
|
+
}
|
|
19400
|
+
}, {
|
|
19401
|
+
key: 'repositionHandles',
|
|
19402
|
+
value: function repositionHandles(handleStyle) {
|
|
19403
|
+
var handleXOffset = '0px';
|
|
19404
|
+
var handleYOffset = '0px';
|
|
19405
|
+
if (handleStyle) {
|
|
19406
|
+
if (handleStyle.width) {
|
|
19407
|
+
handleXOffset = -parseFloat(handleStyle.width) / 2 + 'px';
|
|
19408
|
+
}
|
|
19409
|
+
if (handleStyle.height) {
|
|
19410
|
+
handleYOffset = -parseFloat(handleStyle.height) / 2 + 'px';
|
|
19411
|
+
}
|
|
19412
|
+
}
|
|
19420
19413
|
|
|
19421
|
-
|
|
19422
|
-
|
|
19414
|
+
Object.assign(this.topLeftHandle.style, { left: handleXOffset, top: handleYOffset });
|
|
19415
|
+
Object.assign(this.topRightHandle.style, { right: handleXOffset, top: handleYOffset });
|
|
19416
|
+
Object.assign(this.bottomRightHandle.style, { right: handleXOffset, bottom: handleYOffset });
|
|
19417
|
+
Object.assign(this.bottomLeftHandle.style, { left: handleXOffset, bottom: handleYOffset });
|
|
19418
|
+
}
|
|
19419
|
+
}, {
|
|
19420
|
+
key: 'setCursor',
|
|
19421
|
+
value: function setCursor(value) {
|
|
19422
|
+
if (document.body) {
|
|
19423
|
+
document.body.style.cursor = value;
|
|
19424
|
+
}
|
|
19423
19425
|
|
|
19424
|
-
|
|
19426
|
+
if (this.formatter.currentSpec) {
|
|
19427
|
+
var target = this.formatter.currentSpec.getOverlayElement();
|
|
19428
|
+
if (target) {
|
|
19429
|
+
target.style.cursor = value;
|
|
19430
|
+
}
|
|
19431
|
+
}
|
|
19432
|
+
}
|
|
19433
|
+
}]);
|
|
19434
|
+
|
|
19435
|
+
return ResizeAction;
|
|
19436
|
+
}(_Action3.default);
|
|
19437
|
+
|
|
19438
|
+
ResizeAction.default = ResizeAction$1;
|
|
19439
|
+
return ResizeAction;
|
|
19440
|
+
}
|
|
19425
19441
|
|
|
19426
19442
|
var DeleteAction = {};
|
|
19427
19443
|
|
|
@@ -19441,7 +19457,7 @@
|
|
|
19441
19457
|
|
|
19442
19458
|
var _quill2 = _interopRequireDefault(_quill);
|
|
19443
19459
|
|
|
19444
|
-
var _Action2 =
|
|
19460
|
+
var _Action2 = requireAction();
|
|
19445
19461
|
|
|
19446
19462
|
var _Action3 = _interopRequireDefault(_Action2);
|
|
19447
19463
|
|
|
@@ -19520,7 +19536,7 @@
|
|
|
19520
19536
|
|
|
19521
19537
|
_interopRequireDefault(_BlotFormatter);
|
|
19522
19538
|
|
|
19523
|
-
var _Action =
|
|
19539
|
+
var _Action = requireAction();
|
|
19524
19540
|
|
|
19525
19541
|
_interopRequireDefault(_Action);
|
|
19526
19542
|
|
|
@@ -19528,7 +19544,7 @@
|
|
|
19528
19544
|
|
|
19529
19545
|
var _AlignAction2 = _interopRequireDefault(_AlignAction);
|
|
19530
19546
|
|
|
19531
|
-
var _ResizeAction =
|
|
19547
|
+
var _ResizeAction = requireResizeAction();
|
|
19532
19548
|
|
|
19533
19549
|
var _ResizeAction2 = _interopRequireDefault(_ResizeAction);
|
|
19534
19550
|
|
|
@@ -19976,7 +19992,7 @@
|
|
|
19976
19992
|
}
|
|
19977
19993
|
});
|
|
19978
19994
|
|
|
19979
|
-
var _Action =
|
|
19995
|
+
var _Action = requireAction();
|
|
19980
19996
|
|
|
19981
19997
|
Object.defineProperty(exports, 'Action', {
|
|
19982
19998
|
enumerable: true,
|
|
@@ -20021,7 +20037,7 @@
|
|
|
20021
20037
|
}
|
|
20022
20038
|
});
|
|
20023
20039
|
|
|
20024
|
-
var _ResizeAction =
|
|
20040
|
+
var _ResizeAction = requireResizeAction();
|
|
20025
20041
|
|
|
20026
20042
|
Object.defineProperty(exports, 'ResizeAction', {
|
|
20027
20043
|
enumerable: true,
|
|
@@ -20169,12 +20185,18 @@
|
|
|
20169
20185
|
}
|
|
20170
20186
|
};
|
|
20171
20187
|
const registerBlotFormatter = () => {
|
|
20172
|
-
|
|
20188
|
+
var _a;
|
|
20189
|
+
try {
|
|
20190
|
+
if (!((_a = Quill.imports) === null || _a === void 0 ? void 0 : _a['modules/blotFormatter'])) {
|
|
20191
|
+
Quill.register('modules/blotFormatter', BlotFormatter);
|
|
20192
|
+
}
|
|
20193
|
+
}
|
|
20194
|
+
catch (error) {
|
|
20195
|
+
console.warn('注册BlotFormatter模块时出错:', error);
|
|
20196
|
+
}
|
|
20173
20197
|
};
|
|
20174
20198
|
const getBlotFormatterConfig = () => {
|
|
20175
|
-
return {
|
|
20176
|
-
blotFormatter: true
|
|
20177
|
-
};
|
|
20199
|
+
return {};
|
|
20178
20200
|
};
|
|
20179
20201
|
vue.onMounted(() => {
|
|
20180
20202
|
window.addEventListener('click', handleGlobalClick, true);
|
|
@@ -20418,7 +20440,10 @@
|
|
|
20418
20440
|
},
|
|
20419
20441
|
};
|
|
20420
20442
|
}
|
|
20421
|
-
|
|
20443
|
+
const blotFormatterConfig = getBlotFormatterConfig();
|
|
20444
|
+
if (Object.keys(blotFormatterConfig).length > 0) {
|
|
20445
|
+
clientOptions.modules = Object.assign({}, clientOptions.modules, blotFormatterConfig);
|
|
20446
|
+
}
|
|
20422
20447
|
return Object.assign({}, props.globalOptions, props.options, clientOptions);
|
|
20423
20448
|
};
|
|
20424
20449
|
const maybeClone = (delta) => {
|