P

$html 결과에... 가장 끝의 \n</script>가 안들어가고 있습니다

· 2014-12-08 (월) 07:14:52 · 578 · 4
항상 감사합니다^^;
오류가 발견되었습니다.


오류 주소 : /plugin/editor/smarteditor2/editor.lib.php

아래를 거친$html 결과에... 가장 끝의 \n</script>가 안들어가고 있습니다


if ($is_dhtml_editor && $js) {
$html .= "\n".'<script src="'.$editor_url.'/js/HuskyEZCreator.js"></script>';
$html .= "\n".'<script>var g5_editor_url = "'.$editor_url.'", oEditors = [];</script>';
$html .= "\n".'<script src="'.$editor_url.'/config.js"></script>';
$html .= "\n<script>";
$html .= '
$(function(){
$(".btn_cke_sc").click(function(){
if ($(this).next("div.cke_sc_def").length) {
$(this).next("div.cke_sc_def").remove();
$(this).text("단축키 일람");
} else {
$(this).after("<div class=\'cke_sc_def\' />").next("div.cke_sc_def").load("'.$editor_url.'/shortcut.html");
$(this).text("단축키 일람 닫기");
}
});
$(".btn_cke_sc_close").live("click",function(){
$(this).parent("div.cke_sc_def").remove();
});
});';
$html .= "\n</script>"; // <=== 여기요...
$js = false;
}
|

댓글 4개

확인한 결과 말씀하신 오류를 발견하지 못했습니다.

데모 페이지
http://demo.sir.co.kr/gnuboard5/bbs/write.php?bo_table=freetest

문제가 되는 url, 브라우저 종류를 알려주시면 참고하겠습니다.
2014-12-08 (월) 10:02:32
감사합니다.
실행하면... 정상적으로 되는데요... 실제 디버깅할때... $html 값을 추적해보면..."n</script>" 값이 안들어가요

그래서... 프로그램을 원하는데로 수정해서 실행하면... 원하는 결과가 안나옵니다.

일단... 디버깅할때... $html 값을 추적해보세요


댓글이 달리면.. 본문만 수정이 불가능하게... 프로그램을 수정해보니..
안되서

추적하는 도중에...
function editor_html($id, $content, $is_dhtml_editor=true) 내부로 ... 추적되더라고요

일단... 디버깅할때... $html 값을 추적해보세요


참고) 브라우저는 구글 크롬입니다.

감사합니다.
만약 코드의 문제라면 실행했을 때 결과에 출력이 되지 않아야 합니다.
그러나 기본 코드에서 정상적으로 출력이 되고 있다면 프로그램의 오류라고 볼 수는 없기 때문에
따로 코드 수정 등은 고려하지 않고 있습니다.
2014-12-08 (월) 20:26:44
편리님 감사합니다^^ 다시 해보겠습니다^^
댓글을 작성하시려면 로그인이 필요합니다.

버그신고

4,191건

  문의게시판을 이용해 주세요 :) https://sir.kr/co_qa  

+
분류 제목 글쓴이 날짜
15-01-14
15-01-12
15-01-08
15-01-07
15-01-07
15-01-06
15-01-02
14-12-29
14-12-29
14-12-19
14-12-17
14-12-16
14-12-16
14-12-15
14-12-10
14-12-08
14-12-08
14-12-04
14-12-04
14-12-02