@@ -17,7 +17,7 @@ window.UE = baidu.editor = {
1717 instants: {},
1818 I18N: {},
1919 _customizeUI: {},
20- version: "4.2 .0",
20+ version: "4.3 .0",
2121 plus: {
2222 fileExt: function (filename) {
2323 if (!filename) {
@@ -7975,6 +7975,7 @@ var fillCharReg = new RegExp(domUtils.fillChar, "g");
79757975 shortcutkeys = this.shortcutkeys;
79767976 me.addListener("keydown", function (type, e) {
79777977 var keyCode = e.keyCode || e.which;
7978+ // 快捷键
79787979 for (var i in shortcutkeys) {
79797980 var tmp = shortcutkeys[i].split(",");
79807981 for (var t = 0, ti; (ti = tmp[t++]);) {
@@ -7998,6 +7999,18 @@ var fillCharReg = new RegExp(domUtils.fillChar, "g");
79987999 }
79998000 }
80008001 }
8002+ // 其他一些特殊处理
8003+ var code = e.code
8004+ // 如视频之类的组建,不能删除
8005+ if(code){
8006+ if(code==='Backspace'){
8007+ if(e.target){
8008+ if(e.target.tagName === 'VIDEO'){
8009+ e.target.remove()
8010+ }
8011+ }
8012+ }
8013+ }
80018014 });
80028015 },
80038016
@@ -25932,10 +25945,12 @@ UE.plugins["audio"] = function () {
2593225945 utils.each(tds, function (td) {
2593325946 td.removeAttribute("width");
2593425947 });
25935- table.setAttribute(
25936- "width",
25937- getTableWidth(editor, true, getDefaultValue(editor, table))
25938- );
25948+ // bugfix https://gitee.com/modstart-lib/ueditor-plus/issues/I8N5ON
25949+ // table.setAttribute(
25950+ // "width",
25951+ // getTableWidth(editor, true, getDefaultValue(editor, table))
25952+ // );
25953+ table.setAttribute("width", '100%');
2593925954 var tdsWidths = [];
2594025955 setTimeout(function () {
2594125956 utils.each(tds, function (td) {
@@ -36214,7 +36229,7 @@ UE.ui = baidu.editor.ui = {};
3621436229 if (this._fullscreen) {
3621536230 var vpRect = uiUtils.getViewportRect();
3621636231 this.getDom().style.cssText =
36217- "border:0;position:absolute ;left:0;top:var(--ueditor-top-offset," +
36232+ "border:0;position:fixed ;left:0;top:var(--ueditor-top-offset," +
3621836233 (this.editor.options.topOffset || 0) +
3621936234 "px);width:" +
3622036235 vpRect.width +
0 commit comments