@hailin-zheng/editor-core 2.0.6 → 2.0.7
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/index-cjs.js +21 -9
- package/index-cjs.js.map +1 -1
- package/index.js +21 -9
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -4512,7 +4512,14 @@ class TableRowElement extends BlockContainerElement {
|
|
4512
4512
|
setChildrenModifyFlag(exports.ModifyFlag.Modify, tb.getChild(j));
|
4513
4513
|
}
|
4514
4514
|
}
|
4515
|
-
cell.
|
4515
|
+
else if (cell.props.vMerge === 'restart') {
|
4516
|
+
const endRowIndex = TableUtil.getVMergeEndIndex(tb, currRowIndex, i);
|
4517
|
+
for (let j = currRowIndex; j <= endRowIndex; j++) {
|
4518
|
+
setChildrenModifyFlag(exports.ModifyFlag.Modify, tb.getChild(j));
|
4519
|
+
}
|
4520
|
+
break;
|
4521
|
+
}
|
4522
|
+
//cell.modifyFlag = ModifyFlag.Modify;
|
4516
4523
|
}
|
4517
4524
|
}
|
4518
4525
|
createRenderObject() {
|
@@ -12035,7 +12042,7 @@ class PictureFactory extends ElementFactory {
|
|
12035
12042
|
picProps.width = props.width;
|
12036
12043
|
picProps.height = props.height;
|
12037
12044
|
picProps.src = props.src;
|
12038
|
-
picProps.border = props.border
|
12045
|
+
picProps.border = props.border;
|
12039
12046
|
picProps.title = props.title;
|
12040
12047
|
pic.props = picProps;
|
12041
12048
|
return pic;
|
@@ -19253,13 +19260,18 @@ class DocumentChange {
|
|
19253
19260
|
else if (pasteElement instanceof BlockContainerElement) {
|
19254
19261
|
const children = ElementUtil.getChildrenElements(pasteElement);
|
19255
19262
|
//复制的内容全部为段落,执行黏贴操作
|
19256
|
-
if (children.every(item => item instanceof ParagraphElement)) {
|
19257
|
-
|
19258
|
-
|
19259
|
-
|
19260
|
-
|
19261
|
-
|
19262
|
-
}
|
19263
|
+
// if (children.every(item => item instanceof ParagraphElement)) {
|
19264
|
+
// const targetParagraph = this.splitCurrentParagraph();
|
19265
|
+
// children.forEach((item, i) => {
|
19266
|
+
// targetParagraph.parent.addChild(item, targetParagraph.getIndex());
|
19267
|
+
// });
|
19268
|
+
// this.selectionState.resetRange(children[children.length - 1], -1);
|
19269
|
+
// }
|
19270
|
+
const targetParagraph = this.splitCurrentParagraph();
|
19271
|
+
children.forEach((item, i) => {
|
19272
|
+
targetParagraph.parent.addChild(item, targetParagraph.getIndex());
|
19273
|
+
});
|
19274
|
+
this.selectionState.resetRange(children[children.length - 1], -1);
|
19263
19275
|
}
|
19264
19276
|
}
|
19265
19277
|
insertSoftBr() {
|