Setup TinyMCE in Turbolinks Page
Because of every time page link in turbolink is refreshing only for certain content the is have an impacted to the initialized js coded, one of them is TinyMCE. the solution for this issue is do the reinitialize (remove content and setup) in every time content is loaded. here's the code.
$( document ).on('turbolinks:load', function(){ tinyMCE.remove(); let tinymceArgs = {}; $('#id_selector').tinymce(tinymceArgs); });
Comments
Post a Comment