Skip to content

Commit

Permalink
refs #1438
Browse files Browse the repository at this point in the history
  * 에디터 컨텐츠 보정 루틴을 줄임.
  • Loading branch information
inureyes committed Apr 5, 2010
1 parent 09ff40f commit 3403b6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/FM_Modern/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 뷰에 뿌려주기 위해 변환
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 3403b6e

Please sign in to comment.