Last active
December 26, 2015 09:39
-
-
Save Braunson/7131415 to your computer and use it in GitHub Desktop.
TinyEditor sending WYSIWYG content with POST data. This is for use with jQuery.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
// Add the class submit to your 'submit' button :) | |
$(".submit").on('click', function(){ | |
editor.post(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternatively you could make use of 'onsubmit' in your
tag like so..