che 에디터 관련 질문입니다.
<script src="<?=$g4[editor_path]?>/cheditor.js"></script>
<script defer>
var ed_wr_content = new cheditor('ed_wr_content');
function che_edit() {
// 기존 textarea 를 지우고 새로
content_input.innerHTML = "<input type='hidden' name='wr_content' id='wr_content'>";
ed_wr_content.editorPath = "<?=$g4[editor_path]?>";
ed_wr_content.width = "100%";
ed_wr_content.height = "350";
ed_wr_content.pasteContent = true;
ed_wr_content.pasteContentForm = "wr_content";
ed_wr_content.formName = "fwrite";
ed_wr_content.run();
}
</script>
<a href="javascript://" onclick="che_edit()"; return false; " style="cursor:hand;"><b>che 전환</b></a>
대충 이렇게 만들고 링크를 클릭하니 che 에디터가 빈창에서 혼자 달랑 나타나네요.
run(); 에서 document.write che 에디터 틀을 만들어 주는것 같은데 document.write 가
펑션으로 불려와서 인것 같습니다만.. cheditor.js 수정 않고 che 에디터 불러올 수 없을까요?
일반 textarea 에서 che 에디터로 스크립트로 전환 하게 되도록 하는게 목적입니다.
아 그리고
파이어 폭스 에서
<input type=text name=edit_use value="off">
'
'
if (document.getElementById('edit_use').value == "off") {
요부분에서 document.getElementById('edit_use').value 가 없다고 나와요.
IE 에선 잘 되던데.. 문제를 알 수 있을까요?
그럼 좋은 하루 되세요.
<script defer>
var ed_wr_content = new cheditor('ed_wr_content');
function che_edit() {
// 기존 textarea 를 지우고 새로
content_input.innerHTML = "<input type='hidden' name='wr_content' id='wr_content'>";
ed_wr_content.editorPath = "<?=$g4[editor_path]?>";
ed_wr_content.width = "100%";
ed_wr_content.height = "350";
ed_wr_content.pasteContent = true;
ed_wr_content.pasteContentForm = "wr_content";
ed_wr_content.formName = "fwrite";
ed_wr_content.run();
}
</script>
<a href="javascript://" onclick="che_edit()"; return false; " style="cursor:hand;"><b>che 전환</b></a>
대충 이렇게 만들고 링크를 클릭하니 che 에디터가 빈창에서 혼자 달랑 나타나네요.
run(); 에서 document.write che 에디터 틀을 만들어 주는것 같은데 document.write 가
펑션으로 불려와서 인것 같습니다만.. cheditor.js 수정 않고 che 에디터 불러올 수 없을까요?
일반 textarea 에서 che 에디터로 스크립트로 전환 하게 되도록 하는게 목적입니다.
아 그리고
파이어 폭스 에서
<input type=text name=edit_use value="off">
'
'
if (document.getElementById('edit_use').value == "off") {
요부분에서 document.getElementById('edit_use').value 가 없다고 나와요.
IE 에선 잘 되던데.. 문제를 알 수 있을까요?
그럼 좋은 하루 되세요.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 2개
조건식 반응하네요. 근데 정작 중요한 조건식 안의 내용이 파폭에서 안되는듯 하네요. 헐..
감사 합니다.