Skip to content

Commit 92f8a4d

Browse files
author
git
committed
build
1 parent 659ee7d commit 92f8a4d

5 files changed

Lines changed: 36 additions & 25 deletions

File tree

dist-min/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h2>
8585

8686
</script>
8787
</div>
88-
<div id="btns" style="margin-top:20px;">
88+
<div id="btns" style="margin-top:20px;height:2000px;">
8989
<div>
9090

9191
<button onclick="alert(UE.getEditor('editor').getAllHtml())">获得整个html的内容</button>

dist-min/ueditor.all.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h2>
8585

8686
</script>
8787
</div>
88-
<div id="btns" style="margin-top:20px;">
88+
<div id="btns" style="margin-top:20px;height:2000px;">
8989
<div>
9090

9191
<button onclick="alert(UE.getEditor('editor').getAllHtml())">获得整个html的内容</button>

dist/ueditor.all.js

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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 +

dist/ueditor.config.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -482,30 +482,26 @@
482482
, shortcutMenu: [
483483
// "fontfamily", // 字体
484484
// "fontsize", // 字号
485-
"bold", // 加粗
486-
"italic", // 斜体
487-
"underline", // 下划线
488-
"strikethrough",// 删除线
489-
"fontborder", // 字符边框
490-
"forecolor", // 字体颜色
491-
// "shadowcolor", // 字体阴影
492-
"backcolor", // 背景色
493-
"imagenone",
494-
"imageleft",
495-
"imagecenter",
496-
"imageright",
497-
"insertimage",
485+
"bold", // 加粗
486+
"italic", // 斜体
487+
"underline", // 下划线
488+
"strikethrough", // 删除线
489+
"fontborder", // 字符边框
490+
"forecolor", // 字体颜色
491+
"backcolor", // 背景色
492+
"imagenone", // 图片默认
493+
"imageleft", // 图片左浮动
494+
"imagecenter", // 图片居中
495+
"imageright", // 图片右浮动
496+
"insertimage", // 插入图片
498497
"formula",
499498
// "justifyleft", // 居左对齐
500499
// "justifycenter", // 居中对齐
501500
// "justifyright", // 居右对齐
502501
// "justifyjustify", // 两端对齐
503-
// "textindent", // 首行缩进
504502
// "rowspacingtop", // 段前距
505503
// "rowspacingbottom", // 段后距
506-
// "outpadding", // 两侧距离
507504
// "lineheight", // 行间距
508-
// "letterspacing" , // 字间距
509505
// "insertorderedlist", // 有序列表
510506
// "insertunorderedlist", // 无序列表
511507
// "superscript", // 上标

0 commit comments

Comments
 (0)