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

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

Loading…
Cancel
Save