mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 15:49:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@540 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5c8454f6ed
commit
318b5f1f56
5 changed files with 90 additions and 25 deletions
|
|
@ -138,6 +138,23 @@ function editorGetSelectedHtml(upload_target_srl) {
|
|||
}
|
||||
}
|
||||
|
||||
// 에디터 내의 선택된 부분의 NODE를 return
|
||||
function editorGetSelectedNode(upload_target_srl) {
|
||||
var iframe_obj = editorGetIFrame(upload_target_srl);
|
||||
if(xIE4Up) {
|
||||
var range = iframe_obj.contentWindow.document.selection.createRange();
|
||||
var div = xCreateElement('div');
|
||||
xInnerHtml(div, range.htmlText);
|
||||
var node = div.firstChild;
|
||||
return node;
|
||||
} else {
|
||||
var range = iframe_obj.contentWindow.getSelection().getRangeAt(0);
|
||||
var node = xCreateElement('div');
|
||||
node.appendChild(range.cloneContents());
|
||||
return node.firstChild;
|
||||
}
|
||||
}
|
||||
|
||||
// 에디터 내의 선택된 부분의 html코드를 변경
|
||||
function editorReplaceHTML(iframe_obj, html) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue