@wangeditor-next/editor 5.6.35 → 5.6.36
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/css/style.css +2 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/css/style.css
CHANGED
|
@@ -698,7 +698,7 @@ body .w-e-modal * {
|
|
|
698
698
|
margin: 1px 0px;
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}
|
|
701
|
+
.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;overflow:auto;padding:10px 0;text-align:center}
|
|
702
702
|
.w-e-textarea-video-container {
|
|
703
703
|
text-align: center;
|
|
704
704
|
border: 1px dashed var(--w-e-textarea-border-color);
|
|
@@ -706,6 +706,7 @@ body .w-e-modal * {
|
|
|
706
706
|
margin: 0 auto;
|
|
707
707
|
margin-top: 10px;
|
|
708
708
|
border-radius: 5px;
|
|
709
|
+
overflow: auto;
|
|
709
710
|
background-position: 0px 0px, 10px 10px;
|
|
710
711
|
background-size: 20px 20px;
|
|
711
712
|
background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%), linear-gradient(45deg, #eee 25%, white 25%, white 75%, #eee 75%, #eee 100%);
|
package/dist/index.js
CHANGED
|
@@ -35968,12 +35968,11 @@
|
|
|
35968
35968
|
function preParse$3(elem) {
|
|
35969
35969
|
var $elem = $$1(elem);
|
|
35970
35970
|
var paddingLeft = getStyleValue$1($elem, 'padding-left');
|
|
35971
|
-
if (
|
|
35971
|
+
if (/^[1-9]\d*em$/.test(paddingLeft)) {
|
|
35972
35972
|
// 如 '2em' ,V4 格式
|
|
35973
35973
|
$elem.css('text-indent', '2em');
|
|
35974
35974
|
}
|
|
35975
|
-
if (
|
|
35976
|
-
// px 单位
|
|
35975
|
+
if (/^[1-9]\d*px$/.test(paddingLeft)) {
|
|
35977
35976
|
var num = parseInt(paddingLeft, 10);
|
|
35978
35977
|
if (num % 32 === 0) {
|
|
35979
35978
|
// 如 32px 64px ,V5 早期格式
|
|
@@ -41460,6 +41459,11 @@
|
|
|
41460
41459
|
if (targetEditor === newEditor) {
|
|
41461
41460
|
var tableSelection = EDITOR_TO_SELECTION.get(newEditor);
|
|
41462
41461
|
if (tableSelection && tableSelection.length > 0) {
|
|
41462
|
+
// 排除合并单元格操作
|
|
41463
|
+
if ('hidden' in props || 'rowSpan' in props || 'colSpan' in props) {
|
|
41464
|
+
originalTransforms.setNodes(targetEditor, props, options);
|
|
41465
|
+
return;
|
|
41466
|
+
}
|
|
41463
41467
|
// 表格批量选择:对所有选中的单元格应用属性
|
|
41464
41468
|
tableSelection.forEach(function (row) {
|
|
41465
41469
|
row.forEach(function (cell) {
|