From 83e62fbd9cca1d865b4779a9e2e46eeb106e3d03 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Wed, 17 Jul 2013 17:14:34 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=EC=A0=80=EC=9E=A5?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=EC=97=90=20cheditor5=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=8B=9C=EB=8F=84=20=EC=A0=81=EC=9A=A9=EB=90=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/autosave.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/autosave.js b/js/autosave.js index 5ab002ed6..bc295d9f8 100644 --- a/js/autosave.js +++ b/js/autosave.js @@ -9,6 +9,8 @@ function autosave() { $("form#fwrite").each(function() { if (g4_editor=="ckeditor4" && typeof(CKEDITOR.instances.wr_content)!="undefined") { this.wr_content.value = CKEDITOR.instances.wr_content.getData(); + } else if (g4_editor=="cheditor5" && typeof(ed_wr_content)!="undefined") { + this.wr_content.value = ed_wr_content.outputBodyHTML(); } // 변수에 저장해 놓은 값과 다를 경우에만 임시 저장함 if (save_wr_subject != this.wr_subject.value || save_wr_content != this.wr_content.value) { @@ -75,6 +77,8 @@ $(function(){ $("#wr_subject").val(subject); if (g4_editor=="ckeditor4" && typeof(CKEDITOR.instances.wr_content)!="undefined") { CKEDITOR.instances.wr_content.setData(content); + } else if (g4_editor=="cheditor5" && typeof(ed_wr_content)!="undefined") { + ed_wr_content.putContents(content); } else { $("#fwrite #wr_content").val(content); }