diff --git a/modules/editor/tpl/js/editor.js b/modules/editor/tpl/js/editor.js
index 1368d1b98..dc7e09307 100755
--- a/modules/editor/tpl/js/editor.js
+++ b/modules/editor/tpl/js/editor.js
@@ -14,11 +14,11 @@
// editor_sequence값에 해당하는 textarea object를 return
function editorGetTextArea(editor_sequence) {
- return xGetElementById( 'editor_textarea_' + editor_sequence );
+ return jQuery('#editor_textarea_' + editor_sequence)[0];
}
function editorGetPreviewArea(editor_sequence) {
- return xGetElementById( 'editor_preview_' + editor_sequence );
+ return jQuery( '#editor_preview_' + editor_sequence )[0];
}
// editor_sequence에 해당하는 form문 구함
@@ -42,25 +42,23 @@ function editorGetContent_xe(editor_sequence) {
} else {
var iframe_obj = editorGetIFrame(editor_sequence);
if(!iframe_obj) return "";
- html = xInnerHtml(iframe_obj.contentWindow.document.body).replace(/^
]*)>$/i,'');
+ html = jQuery(iframe_obj.contentWindow.document.body).html().replace(/^
]*)>$/i,'');
}
return html;
}
// 에디터 내의 선택된 부분의 NODE를 return
function editorGetSelectedNode(editor_sequence) {
- var iframe_obj = editorGetIFrame(editor_sequence);
- if(xIE4Up) {
- var range = iframe_obj.contentWindow.document.selection.createRange();
- var div = xCreateElement('div');
- xInnerHtml(div, range.htmlText);
- var node = div.firstChild;
- return node;
+ var iframe_obj = editorGetIFrame(editor_sequence), w, range;
+
+ w = iframe_obj.contentWindow;
+
+ if(w.document.selection) {
+ range = w.document.selection.createRange();
+ return jQuery('