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.
Ahmet Sezgin DURAN edited this page Apr 8, 2016
·
1 revision
In order to use Medium Editor with Turbolinks, do the following:
Remove Medium Editor before the page loads.
Re-attach on page load.
So:
varall_medium_editors=null;$(document).on('turbolinks:before-render',function(){if(all_medium_editors!=null){all_medium_editors.destroy()}})$(document).on('turbolinks:load',function(){all_medium_editors=newMediumEditor('.editable',{// options go here});})