0

D7 has module "Save & Edit".

There are any solutions for D8?

1
  • Can you elaborate on this?
    – Kevin
    Commented Apr 9, 2017 at 0:11

1 Answer 1

4

The Save & Edit module is a very basic module. It comprises of 6 total functions, so a port could be done less than a day.

Alternatively, if the your requirement is to just save editing progress while keeping the editor window up, the Autosave form module does that.

If you're looking to go the custom code route, some simple jQuery form manipulation can add a button which can trigger a form redirection & submit. For example:

// Set the form destination to the edit form and submit it.
jQuery('form.node-form').attr('action', '/node/<NID>/edit?destination=node/<NID>/edit'); 
jQuery('.node-form').submit();
1
  • 1
    For custom code route, a more Drupaly way would be to use hook_form_alter to add the new button and in the summit handler of your new button use setRedirect
    – No Sssweat
    Commented Apr 10, 2017 at 1:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.