From 3403b6efbfdd4b5079664205f896931592258f00 Mon Sep 17 00:00:00 2001 From: inureyes Date: Mon, 5 Apr 2010 09:11:50 +0000 Subject: [PATCH] =?UTF-8?q?=20refs=20#1438=20=20=20*=20=EC=97=90=EB=94=94?= =?UTF-8?q?=ED=84=B0=20=EC=BB=A8=ED=85=90=EC=B8=A0=20=EB=B3=B4=EC=A0=95=20?= =?UTF-8?q?=EB=A3=A8=ED=8B=B4=EC=9D=84=20=EC=A4=84=EC=9E=84.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/FM_Modern/editor.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/FM_Modern/editor.js b/plugins/FM_Modern/editor.js index aa527d590..fd3caf996 100644 --- a/plugins/FM_Modern/editor.js +++ b/plugins/FM_Modern/editor.js @@ -278,15 +278,14 @@ TTModernEditor.prototype.finalize = function() { TTModernEditor.prototype.syncContents = function() { if (this.editMode == "WYSIWYG") { - this.correctContent(); this.textarea.value = this.html2ttml(); } else if (this.editMode == "TEXTAREA") { - this.correctContent(); this.contentDocument.body.innerHTML = this.ttml2html(); } } TTModernEditor.prototype.syncTextarea = function() { + this.correctContent(); return this.syncContents(); } // TTML로 작성된 파일을 HTML 뷰에 뿌려주기 위해 변환 @@ -2011,7 +2010,7 @@ TTModernEditor.prototype.toggleMode = function() { this.iframe.style.display = "none"; this.textarea.style.display = "block"; this.editMode = "TEXTAREA"; -// this.correctContent(); + this.correctContent(); this.textarea.focus(); this.resizer.target = this.textarea; } @@ -2026,7 +2025,7 @@ TTModernEditor.prototype.toggleMode = function() { return; } this.editMode = "WYSIWYG"; -// this.correctContent(); + this.correctContent(); try { this.contentDocument.body.focus(); } catch(e) { } this.resizer.target = this.iframe; }