Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add submit handler to automatically get the markup of the editor and set

the val of the textarea
  • Loading branch information...
commit 2bc5346462f325d30e21215bad79f0919fb4dbbf 1 parent 21a14f3
@nhowell authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/wysihat/editor.js
View
4 src/wysihat/editor.js
@@ -25,6 +25,10 @@ WysiHat.Editor = {
$textarea.hide();
+ $textarea.closest('form').submit(function() {
+ $textarea.val(WysiHat.Formatting.getApplicationMarkupFrom($editArea));
+ });
+
// WysiHat.BrowserFeatures.run()
return $editArea;
Please sign in to comment.
Something went wrong with that request. Please try again.