projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a327153
)
Roo/form/HtmlEditor.js
author
Edward
<edward@roojs.com>
Mon, 8 Jun 2015 09:03:52 +0000
(17:03 +0800)
committer
Edward
<edward@roojs.com>
Mon, 8 Jun 2015 09:03:52 +0000
(17:03 +0800)
Roo/form/HtmlEditor.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor.js
b/Roo/form/HtmlEditor.js
index
908a70e
..
a15f0d3
100644
(file)
--- a/
Roo/form/HtmlEditor.js
+++ b/
Roo/form/HtmlEditor.js
@@
-323,8
+323,10
@@
Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
return;
}
-
-
+ var selection = window.getSelection();
+ var range = document.createRange();
+ selection.removeAllRanges();
+ selection.addRange(range);
},
"end" : function(e){