projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7178676
)
Roo/htmleditor/KeyEnter.js
author
Alan
<alan@roojs.com>
Fri, 24 Dec 2021 06:44:20 +0000
(14:44 +0800)
committer
Alan
<alan@roojs.com>
Fri, 24 Dec 2021 06:44:20 +0000
(14:44 +0800)
Roo/htmleditor/KeyEnter.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/KeyEnter.js
b/Roo/htmleditor/KeyEnter.js
index
5f221fa
..
f0917a0
100644
(file)
--- a/
Roo/htmleditor/KeyEnter.js
+++ b/
Roo/htmleditor/KeyEnter.js
@@
-82,11
+82,9
@@
Roo.htmleditor.KeyEnter.prototype = {
range.insertNode(docFragment);
range = range.cloneRange();
range.collapse(false);
-
- win.getSelection().removeAllRanges();
- win.getSelection().addRange(range);
-
-
+ var sel = this.core.win.getSelection();
+ sel.removeAllRanges();
+ sel.addRange(range);
return false;