mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
further work regarding the editor focus
This commit is contained in:
parent
d75726eeaa
commit
a2e75c3ca4
@ -570,7 +570,13 @@ class html
|
|||||||
r.collapse(true);
|
r.collapse(true);
|
||||||
r.selectNodeContents(d.getBody());
|
r.selectNodeContents(d.getBody());
|
||||||
r.collapse('.($_focusToBody==='BOTTOM'?'false':'true').');
|
r.collapse('.($_focusToBody==='BOTTOM'?'false':'true').');
|
||||||
r.select();
|
r.select();'.($font_span?'
|
||||||
|
//this stuff is needed, as the above places the caret just before the span tag
|
||||||
|
var sN = r.startContainer.getNextSourceNode();
|
||||||
|
//FF is selecting the span with getNextSourceNode, other browsers need to fetch it with getNext
|
||||||
|
r.selectNodeContents(((typeof sN.getName==="function") && sN.getName()=="span"?r.startContainer.getNextSourceNode():r.startContainer.getNextSourceNode().getNext()));
|
||||||
|
r.collapse(true);
|
||||||
|
r.select();':'').'
|
||||||
':'').
|
':'').
|
||||||
'
|
'
|
||||||
ev.editor.resize("100%", '.str_replace('px', '', $pxheight).');
|
ev.editor.resize("100%", '.str_replace('px', '', $pxheight).');
|
||||||
|
Loading…
Reference in New Issue
Block a user