Browse Source

codemirror与IE11

master
windy 7 years ago
parent
commit
7ab03d77c3
  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); 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 () { // this.editor.on("blur", function () {
// self.editor.execCommand("goLineEnd"); // 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); 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 () { // this.editor.on("blur", function () {
// self.editor.execCommand("goLineEnd"); // 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); 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 () { // this.editor.on("blur", function () {
// self.editor.execCommand("goLineEnd"); // 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); 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 () { // this.editor.on("blur", function () {
// self.editor.execCommand("goLineEnd"); // self.editor.execCommand("goLineEnd");
// }); // });

Loading…
Cancel
Save