Changeset 5973 for trunk/expressoMail1_2/js/rich_text_editor.js
- Timestamp:
- 04/19/12 14:02:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/rich_text_editor.js
r5962 r5973 10 10 this.plain = new Array; 11 11 this.editorReady = true; 12 this.hoho = ''; 12 13 } 13 14 … … 240 241 CKEDITOR.instances[id].setData(data) 241 242 } 242 cRichTextEditor.prototype.setInitData = function (id,data,reply,recursion ){243 cRichTextEditor.prototype.setInitData = function (id,data,reply,recursion, callback){ 243 244 var content = $("#content_id_"+id); 244 245 if(recursion === undefined){ … … 282 283 editor.insertHtml(divBr+data); 283 284 editor.focus(); 284 } 285 } 286 287 if(selection !== null){ 288 if(selectionRanges[selectionRanges.length-1] !== undefined){ 289 selectionRanges[selectionRanges.length-1].setStart(selectionRanges[selectionRanges.length-1].getTouchedStartNode().getParents()[1].getChild(0), 0); 290 selectionRanges[selectionRanges.length-1].setEnd(selectionRanges[selectionRanges.length-1].getTouchedStartNode().getParents()[1].getChild(0), 0); 291 } 292 selection.selectRanges(selectionRanges); 293 } 285 294 286 if(selection !== null){287 selection.selectRanges(selectionRanges);288 }289 295 if (is_webkit){ 290 296 $('#cke_contents_body_'+id+'>iframe').scrollTo(':first'); 291 297 } 292 298 if(callback !== undefined) 299 callback(); 293 300 } 294 301 else if(recursion < 20){
Note: See TracChangeset
for help on using the changeset viewer.