Ticket #10588: control_js_in_place_editor.diff
| File control_js_in_place_editor.diff, 0.6 kB (added by glennfu, 2 years ago) |
|---|
-
src/controls.js
old new 536 536 createEditField: function() { 537 537 var text = (this.options.loadTextURL ? this.options.loadingText : this.getText()); 538 538 var fld; 539 if (1 >= this.options.rows && !/\r|\n/.test(t his.getText())) {539 if (1 >= this.options.rows && !/\r|\n/.test(text)) { 540 540 fld = document.createElement('input'); 541 541 fld.type = 'text'; 542 542 var size = this.options.size || this.options.cols || 0;