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
With refinery cms version 3, save and continue doesn't work. It is caused by a call to undeclared function visual_editor_update() from within submit_and_continue function in refinery/admin.js
` submit_and_continue = function(e, redirect_to) {
visual_editor_update(); <-- here
This is a problem in the RefineryCMS admin.js, but can be fixed without branching or even overriding anything pretty easily. However, because Refinery doesn't automatically load any user facing JS in the admin views by default, you have to follow a few steps.
Add a file named editor_patch.js with the following content. window.visual_editor_update = function(){}
Add (or modify) config/intializers/assets.rb with Rails.application.config.assets.precompile += %w( editor_patch.js )
Uncomment (or modify) the following line config/initializers/core.rb as follows: config.register_javascript "editor_patch"
With refinery cms version 3, save and continue doesn't work. It is caused by a call to undeclared function visual_editor_update() from within submit_and_continue function in refinery/admin.js
` submit_and_continue = function(e, redirect_to) {
visual_editor_update(); <-- here
$('#continue_editing').val(true);
$('#flash').hide();
$('.fieldWithErrors').removeClass('fieldWithErrors').addClass('field');
$('#flash_container .errorExplanation').remove();
`
The text was updated successfully, but these errors were encountered: