You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
Hey great Rails wrapper, just saved me a couple days (or weeks) getting medium-editor into rails.
Does anyone have any sample controller ruby code and subscribe js code to actually get the changes back into a Rails model?
The text was updated successfully, but these errors were encountered:
$("#static_page_form").submit(function(e){varform=$(this);$.ajax({url : form.attr('action'),type : form.attr('method'),data : {"static_page[body]": $("#static_page_body").html()},// data to be submittedsuccess: function(response){alert(response);// do what you like with the response}});returnfalse;});
will update once we've got a working version - feels old and clunky to be using jQuery - feels like there maybe should be a cleaner rails helper way to do this ...
Hey great Rails wrapper, just saved me a couple days (or weeks) getting medium-editor into rails.
Does anyone have any sample controller ruby code and subscribe js code to actually get the changes back into a Rails model?
The text was updated successfully, but these errors were encountered: