Browse Source

codeeditor加个focus方法

es6
windy 8 years ago
parent
commit
49c485dc5d
  1. 4
      src/base/single/editor/editor.code.js

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

@ -141,6 +141,10 @@ BI.CodeEditor = BI.inherit(BI.Single, {
focus: function () {
this.editor.focus();
},
blur: function () {
this.editor.getInputField().blur();
},
setStyle: function (style) {
this.style = style;

Loading…
Cancel
Save