에디터에서 글자가 붙던 문제 해결

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2226 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-07 01:45:39 +00:00
parent 4273d14e1c
commit b93a4516bd
2 changed files with 10 additions and 7 deletions

View file

@ -30,7 +30,7 @@ function editorStart(upload_target_srl, resizable, height) {
// iframe_area를 찾음
var iframe_area = xGetElementById("editor_iframe_area_"+upload_target_srl);
xHeight(iframe_area, height+10);
xInnerHtml(iframe_area, '<iframe id="editor_iframe_'+upload_target_srl+'" frameBorder="0" style="width:100%;height:'+height+'px;"></iframe>');
xInnerHtml(iframe_area, '<iframe id="editor_iframe_'+upload_target_srl+'" frameBorder="0" style="background-color:transparent;width:100%;height:'+height+'px;"></iframe>');
// iframe obj를 찾음
var iframe_obj = editorGetIFrame(upload_target_srl);
@ -76,10 +76,13 @@ function editorStart(upload_target_srl, resizable, height) {
'</style>'+
'</head><body upload_target_srl="'+upload_target_srl+'">'+
content+
"\n"+
'</body></html>'+
'';
contentDocument.designMode = 'on';
try {
contentDocument.execCommand("undo", false, null);
} catch (e) {
}
contentDocument.open("text/html","replace");
contentDocument.write(contentHtml);
contentDocument.close();