git-svn-id: http://xe-core.googlecode.com/svn/trunk@562 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-20 03:59:02 +00:00
parent 371a3ceefe
commit 1dececb466
3 changed files with 14 additions and 9 deletions

View file

@ -255,6 +255,8 @@ function editorEventCheck(evt) {
case 'outdent' :
case 'insertorderedlist' :
case 'insertunorderedlist' :
case 'undo' :
case 'redo' :
editorDo(component_name, '', upload_target_srl);
break;
@ -371,8 +373,14 @@ function editorDo(name, value, target) {
function _editorDoSrl(name, value, upload_target_srl) {
var iframe_obj = editorGetIFrame(upload_target_srl);
editorFocus(upload_target_srl);
if(xIE4Up) iframe_obj.contentWindow.document.execCommand(name, false, value);
else iframe_obj.contentWindow.document.execCommand(name, false, value);
try {
if(xIE4Up) {
iframe_obj.contentWindow.document.execCommand(name, false, value);
} else {
iframe_obj.contentWindow.document.execCommand(name, false, value);
}
} catch(e) {
}
editorFocus(upload_target_srl);
}