• Resolved Ben Levy

    (@benlevymultiply)


    In the base wordpress tinymce plugin there is code to add an editor shortcut on meta+s which will trigger a autosave draft. This will take precedence over the plugin when ctrl-s is used. This has the effect of requiring autosave to finish before the plugin can hear the ctrl-s, it appears to the end user that ctrl-s does nothing the first time. I believe there was a post about this issue 9 months ago.

    The following will prevent the autosave draft and allow the plugin to work

    
    $(document).on('tinymce-editor-init', function(event, editor) {
       editor.addShortcut('meta+s');
    });
    

    I couldn’t find a way to submit a patch other than this, sorry if this is the wrong format for you.

    • This topic was modified 6 years, 3 months ago by Ben Levy.
    • This topic was modified 6 years, 3 months ago by Ben Levy.
Viewing 1 replies (of 1 total)
  • Plugin Author Mattia Trapani

    (@zupolgec)

    Hi Ben,
    this issue has been fixed in 3.0.1.

    Thank you for pointing this out!

    Have a nice day

Viewing 1 replies (of 1 total)
  • The topic ‘[patch] Default wordpress auto-save breaks plugin’ is closed to new replies.