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

This commit is contained in:
zero 2007-03-16 08:57:17 +00:00
parent 601849c669
commit b0dbe0efa7
5 changed files with 50 additions and 59 deletions

View file

@ -152,6 +152,7 @@ function editorReplaceHTML(iframe_obj, html) {
range.deleteContents();
range.insertNode(range.createContextualFragment(html));
}
iframe_obj.contentWindow.focus();
}
// 입력 키에 대한 이벤트 체크
@ -347,19 +348,6 @@ function editorDoInsertUrl(link, upload_target_srl) {
editorReplaceHTML(iframe_obj, link);
}
function editorInsertUrl(text, url, link_type) {
if(!text || !url) return;
//if(!/^(http|ftp)/i.test(url)) url = 'http://'+url;
var link = '';
if(!link_type) link = "<a href=\""+url+"\" target=\"_blank\">"+text+"</a>";
else link = "<a href=\""+url+"\" class=\""+link_type+"\" style='text-decoration:none;' target=\"_blank\">"+text+"</a>";
editorFocus(editorPrevSrl);
var obj = editorGetIFrame(editorPrevSrl)
editorReplaceHTML(obj, link);
}
function editorInsertImage(url, src_align) {
if(!url) return;
//if(!/^(http|ftp)/i.test(url)) url = 'http://'+url;