projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f87bce
)
Roo/form/HtmlEditor.js
author
Edward
<edward@roojs.com>
Mon, 8 Jun 2015 06:31:25 +0000
(14:31 +0800)
committer
Edward
<edward@roojs.com>
Mon, 8 Jun 2015 06:31:25 +0000
(14:31 +0800)
Roo/form/HtmlEditor.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor.js
b/Roo/form/HtmlEditor.js
index
c652580
..
4b1a32a
100644
(file)
--- a/
Roo/form/HtmlEditor.js
+++ b/
Roo/form/HtmlEditor.js
@@
-264,10
+264,11
@@
Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
Roo.log('TAB');
var value = this.getValue();
+
var start = this.el.dom.selectionStart;
- var end =
value.length
;
+ var end =
this.el.dom.selectionEnd
;
- this.setValue(
)
+ this.setValue(
value.substring(0, start) + "\t" + value.substring(end));
},