Skip to content

Instantly share code, notes, and snippets.

@Braunson
Last active December 26, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Braunson/7131415 to your computer and use it in GitHub Desktop.
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.
$(document).ready(function(){
// Add the class submit to your 'submit' button :)
$(".submit").on('click', function(){
editor.post();
});
});
@Braunson
Copy link
Author

Alternatively you could make use of 'onsubmit' in your

tag like so..

<form onsubmit="editor.post()" >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment