Hello!
I need some JS-scripts to address a UnimMemo.
I use Form->Script:
Ext.form.TextArea.prototype.deleteAtCursor = function(txt) {
var val = this.getValue(),
start = this.inputElement.dom.selectionStart,
end = this.inputElement.dom.selectionEnd;
this.setValue(val.substring(0, start - 1) + val.substring(end));
this.inputElement.dom.selectionStart = this.inputElement.dom.selectionEnd = start - 1;
Ext.defer(function() { this.focus(false); }, 10);
Hello!
I need some JS-scripts to address a UnimMemo.
I use Form->Script:
Ext.form.TextArea.prototype.deleteAtCursor = function(txt) {
var val = this.getValue(),
start = this.inputElement.dom.selectionStart,
end = this.inputElement.dom.selectionEnd;
this.setValue(val.substring(0, start - 1) + val.substring(end));
this.inputElement.dom.selectionStart = this.inputElement.dom.selectionEnd = start - 1;
Ext.defer(function() { this.focus(false); }, 10);