blob: a861a4035efc3d7a4796d7bea2573f0fb9aa435b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if (window.tinyMCE) {
var editor = window.tinyMCE.get(textAreaId);
if (editor) {
// work around for IE/TinyMCE bug where TinyMCE loses insert carot
if ($.browser.msie) {
editor.focus();
editor.selection.moveToBookmark(elgg.tinymce.bookmark);
}
editor.execCommand("mceInsertContent", true, content);
}
}
|