mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
에디터에서 글자가 붙던 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2226 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4273d14e1c
commit
b93a4516bd
2 changed files with 10 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
@charset "utf-8";
|
||||
|
||||
.xeEditor { border-top:1px solid #eaeae7; }
|
||||
.xeEditor { }
|
||||
.xeEditor .optionABC { clear:both; width:100%; border-bottom:1px solid #c2c2c2; overflow:hidden; background:#ffffff url(../images/bgBoardEditorOption.gif) no-repeat -3px bottom;}
|
||||
.xeEditor .optionABC .selectGroup { white-space:nowrap; display:block; height:21px; margin:0 .5em 0 0; padding-left:1em; float:left;}
|
||||
.xeEditor .optionABC .buttonGroup { white-space:nowrap; position:relative; display:block; margin:0 .5em 0 0; float:left; height:21px; overflow:hidden; padding-left:2px;}
|
||||
|
|
@ -18,14 +18,14 @@
|
|||
.xeEditor .optionD { padding:.5em 0 .5em .8em; overflow:hidden; float:left; border-right:1px solid #e0e0e0;}
|
||||
.xeEditor .optionE { padding:.5em; overflow:hidden; border-left:1px solid #ffffff; float:left;}
|
||||
|
||||
.xeEditor .editorInfo { background:#fbfbfb; padding:.5em; border:1px solid #e1e1dd; color:#999999; position:relative; margin:.5em 0 .5em 0;}
|
||||
.xeEditor .editorInfo { background:#fbfbfb; padding:.5em; border:1px solid #e1e1dd; color:#999999; position:relative; margin:.5em ;}
|
||||
.xeEditor .close { cursor:pointer; position:absolute; top:3px; right:3px; _top:3px; _right:15px;}
|
||||
.xeEditor .editor_iframe_box { clear:both; border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; padding:.5em; margin-top:.5em; }
|
||||
.xeEditor .editor_iframe_box { background:#ffffff; clear:both; border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; padding:.5em; margin:.5em; }
|
||||
|
||||
.xeEditor .textAreaDragIndicator { text-align:center; background:url(../images/lineTextAreaDrag.gif) repeat-x left center; margin-bottom:1em; margin-top:5px; }
|
||||
.xeEditor .textAreaDragIndicator { text-align:center; background:url(../images/lineTextAreaDrag.gif) repeat-x left center; margin-bottom:1em; margin:.5em; }
|
||||
.xeEditor .textAreaDragIndicatorBar { background:url(../images/buttonTextAreaDrag.gif) no-repeat center; margin-bottom:1em;cursor:move;height:14px;}
|
||||
|
||||
div.editor_autosaved_message { color:#888888; display:none; padding:3px;}
|
||||
div.editor_autosaved_message { color:#888888; display:none; margin:.5em; text-align:right;}
|
||||
|
||||
.xeEditor .inputTypeTextArea { background:#fbfbfb; padding:1em; width:94%;}
|
||||
.xeEditor #textAreaDrag {}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue