Skip to content

Commit

Permalink
use get app markup in test editor
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed May 25, 2010
1 parent bd89203 commit ba57c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/editor.html
Expand Up @@ -76,7 +76,7 @@
});

editor.observe("field:change", function(event) {
$('note_body').setValue(editor.innerHTML);
$('note_body').setValue(WysiHat.Formatting.getApplicationMarkupFrom(editor));
$('note_body_raw').setValue(event.element().innerHTML);
});

Expand All @@ -97,7 +97,7 @@
<form id="edit_note" action="#" method="post" style="width: 500px;">
<div id="note_body_editor" class="editor" contentEditable="true"></div>

<h3>Sanitized Contents</h3>
<h3>Formatted Contents</h3>
<textarea id="note_body" disabled></textarea>

<h3>Raw Contents</h3>
Expand Down

0 comments on commit ba57c7c

Please sign in to comment.