From 45c6ed23b4af02a75c3715dedf803cf3262e49e5 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 13 Jun 2018 12:04:37 +0800 Subject: [PATCH] BI-23912 --- dist/bundle.js | 18 ++++++++++++++---- dist/case.js | 18 ++++++++++++++---- dist/fineui.js | 18 ++++++++++++++---- src/case/richeditor/niceditor/niceditor.js | 18 ++++++++++++++---- 4 files changed, 56 insertions(+), 16 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index e04c757e2..201b9b2f5 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -83292,7 +83292,8 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** }); this.elm.element.css({ minHeight: BI.isNumber(o.height) ? (o.height - 8) + "px" : o.height, - outline: "none" + outline: "none", + padding: "0 10px" }).html(o.value); if(o.readOnly) { @@ -83326,12 +83327,21 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** // this.setContent("
"); } this.instanceDoc = document.defaultView; - this.elm.element.on("mousedown", BI.bind(this.selected, this)); + this.elm.element.on("mousedown", BI.bind(function (e) { + console.log(1); + this.selected(e); + }, this)); this.elm.element.on("keyup", BI.bind(this.keyDown, this)); // this.elm.element.on("keydown", BI.bind(this.keyDown, this)); - this.elm.element.on("focus", BI.bind(this.selected, this)); + this.elm.element.on("focus", BI.bind(function (e) { + console.log(2); + this.selected(e); + }, this)); this.elm.element.on("blur", BI.bind(this.blur, this)); - this.elm.element.on("keyup", BI.bind(this.selected, this)); + this.elm.element.on("keyup", BI.bind(function (e) { + console.log(3); + this.selected(e); + }, this)); this.ne.fireEvent("add"); }, diff --git a/dist/case.js b/dist/case.js index 4ba90e4c2..3e4e21511 100644 --- a/dist/case.js +++ b/dist/case.js @@ -10802,7 +10802,8 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** }); this.elm.element.css({ minHeight: BI.isNumber(o.height) ? (o.height - 8) + "px" : o.height, - outline: "none" + outline: "none", + padding: "0 10px" }).html(o.value); if(o.readOnly) { @@ -10836,12 +10837,21 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** // this.setContent("
"); } this.instanceDoc = document.defaultView; - this.elm.element.on("mousedown", BI.bind(this.selected, this)); + this.elm.element.on("mousedown", BI.bind(function (e) { + console.log(1); + this.selected(e); + }, this)); this.elm.element.on("keyup", BI.bind(this.keyDown, this)); // this.elm.element.on("keydown", BI.bind(this.keyDown, this)); - this.elm.element.on("focus", BI.bind(this.selected, this)); + this.elm.element.on("focus", BI.bind(function (e) { + console.log(2); + this.selected(e); + }, this)); this.elm.element.on("blur", BI.bind(this.blur, this)); - this.elm.element.on("keyup", BI.bind(this.selected, this)); + this.elm.element.on("keyup", BI.bind(function (e) { + console.log(3); + this.selected(e); + }, this)); this.ne.fireEvent("add"); }, diff --git a/dist/fineui.js b/dist/fineui.js index 99c9645fe..112a7bbfc 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -83535,7 +83535,8 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** }); this.elm.element.css({ minHeight: BI.isNumber(o.height) ? (o.height - 8) + "px" : o.height, - outline: "none" + outline: "none", + padding: "0 10px" }).html(o.value); if(o.readOnly) { @@ -83569,12 +83570,21 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** // this.setContent("
"); } this.instanceDoc = document.defaultView; - this.elm.element.on("mousedown", BI.bind(this.selected, this)); + this.elm.element.on("mousedown", BI.bind(function (e) { + console.log(1); + this.selected(e); + }, this)); this.elm.element.on("keyup", BI.bind(this.keyDown, this)); // this.elm.element.on("keydown", BI.bind(this.keyDown, this)); - this.elm.element.on("focus", BI.bind(this.selected, this)); + this.elm.element.on("focus", BI.bind(function (e) { + console.log(2); + this.selected(e); + }, this)); this.elm.element.on("blur", BI.bind(this.blur, this)); - this.elm.element.on("keyup", BI.bind(this.selected, this)); + this.elm.element.on("keyup", BI.bind(function (e) { + console.log(3); + this.selected(e); + }, this)); this.ne.fireEvent("add"); }, diff --git a/src/case/richeditor/niceditor/niceditor.js b/src/case/richeditor/niceditor/niceditor.js index 45c821e24..603ade832 100644 --- a/src/case/richeditor/niceditor/niceditor.js +++ b/src/case/richeditor/niceditor/niceditor.js @@ -109,7 +109,8 @@ }); this.elm.element.css({ minHeight: BI.isNumber(o.height) ? (o.height - 8) + "px" : o.height, - outline: "none" + outline: "none", + padding: "0 10px" }).html(o.value); if(o.readOnly) { @@ -143,12 +144,21 @@ // this.setContent("
"); } this.instanceDoc = document.defaultView; - this.elm.element.on("mousedown", BI.bind(this.selected, this)); + this.elm.element.on("mousedown", BI.bind(function (e) { + console.log(1); + this.selected(e); + }, this)); this.elm.element.on("keyup", BI.bind(this.keyDown, this)); // this.elm.element.on("keydown", BI.bind(this.keyDown, this)); - this.elm.element.on("focus", BI.bind(this.selected, this)); + this.elm.element.on("focus", BI.bind(function (e) { + console.log(2); + this.selected(e); + }, this)); this.elm.element.on("blur", BI.bind(this.blur, this)); - this.elm.element.on("keyup", BI.bind(this.selected, this)); + this.elm.element.on("keyup", BI.bind(function (e) { + console.log(3); + this.selected(e); + }, this)); this.ne.fireEvent("add"); },