Browse Source

Merge pull request #181 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '7ab03d77c340d00aebe2061f8b00866c5fb35c0c':
  codemirror与IE11
es6
windy 7 years ago
parent
commit
b0b201283e
  1. 8
      bi/base.js
  2. 8
      dist/base.js
  3. 8
      dist/bundle.js
  4. 78
      dist/bundle.min.js
  5. 8
      src/base/single/editor/editor.code.js

8
bi/base.js

@ -19054,6 +19054,14 @@ BI.CodeEditor = BI.inherit(BI.Single, {
self.fireEvent(BI.CodeEditor.EVENT_BLUR);
});
this.editor.on("mousedown", function (cm, e) {
//IE下mousedown之后会触发blur,所以nextTick后再做focus
BI.nextTick(function () {
self.fireEvent(BI.CodeEditor.EVENT_FOCUS);
});
e.stopPropagation();
});
// this.editor.on("blur", function () {
// self.editor.execCommand("goLineEnd");
// });

8
dist/base.js vendored

@ -19054,6 +19054,14 @@ BI.CodeEditor = BI.inherit(BI.Single, {
self.fireEvent(BI.CodeEditor.EVENT_BLUR);
});
this.editor.on("mousedown", function (cm, e) {
//IE下mousedown之后会触发blur,所以nextTick后再做focus
BI.nextTick(function () {
self.fireEvent(BI.CodeEditor.EVENT_FOCUS);
});
e.stopPropagation();
});
// this.editor.on("blur", function () {
// self.editor.execCommand("goLineEnd");
// });

8
dist/bundle.js vendored

@ -48081,6 +48081,14 @@ BI.CodeEditor = BI.inherit(BI.Single, {
self.fireEvent(BI.CodeEditor.EVENT_BLUR);
});
this.editor.on("mousedown", function (cm, e) {
//IE下mousedown之后会触发blur,所以nextTick后再做focus
BI.nextTick(function () {
self.fireEvent(BI.CodeEditor.EVENT_FOCUS);
});
e.stopPropagation();
});
// this.editor.on("blur", function () {
// self.editor.execCommand("goLineEnd");
// });

78
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

8
src/base/single/editor/editor.code.js

@ -44,6 +44,14 @@ BI.CodeEditor = BI.inherit(BI.Single, {
self.fireEvent(BI.CodeEditor.EVENT_BLUR);
});
this.editor.on("mousedown", function (cm, e) {
//IE下mousedown之后会触发blur,所以nextTick后再做focus
BI.nextTick(function () {
self.fireEvent(BI.CodeEditor.EVENT_FOCUS);
});
e.stopPropagation();
});
// this.editor.on("blur", function () {
// self.editor.execCommand("goLineEnd");
// });

Loading…
Cancel
Save