mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:24 +01:00
* eMail: fix for CKEditor fragments shown on reply for IE9+10; focus to body handling is completely moved to html::fckeditor
This commit is contained in:
parent
8255e95793
commit
721f38b5e7
@ -221,41 +221,7 @@ if (toFocus=='body')
|
||||
sString = document.doit.fm_compose_subject.value;
|
||||
document.doit.fm_compose_subject.selectionStart = document.doit.fm_compose_subject.selectionEnd = sString.length;
|
||||
document.doit.fm_compose_subject.focus();
|
||||
|
||||
//var ckeditor = CKEDITOR.instances['body'];
|
||||
|
||||
CKEDITOR.appendTo('body',
|
||||
{
|
||||
on:
|
||||
{
|
||||
'instanceReady': function (ev) {
|
||||
CKEDITOR.instances.body.focus();
|
||||
var d = CKEDITOR.document;
|
||||
var r = new CKEDITOR.dom.range(d);
|
||||
r.collapse(true);
|
||||
r.selectNodeContents(d.getBody());
|
||||
r.collapse(true);
|
||||
r.moveToElementEditablePosition(r.startContainer.getNextSourceNode().getNext());
|
||||
r.select();
|
||||
}
|
||||
}
|
||||
});
|
||||
CKEDITOR.appendTo('body',
|
||||
{
|
||||
on:
|
||||
{
|
||||
'pluginsLoaded': function (ev) {
|
||||
CKEDITOR.instances.body.focus();
|
||||
var d = CKEDITOR.document;
|
||||
var r = new CKEDITOR.dom.range(d);
|
||||
r.collapse(true);
|
||||
r.selectNodeContents(d.getBody());
|
||||
r.collapse(true);
|
||||
r.moveToElementEditablePosition(r.startContainer.getNextSourceNode().getNext());
|
||||
r.select();
|
||||
}
|
||||
}
|
||||
});
|
||||
// the actual focussing is done in class.html.inc.php function fckEditor
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user