Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

[patch] Default wordpress auto-save breaks plugin

$
0
0

Replies: 0

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.


Viewing all articles
Browse latest Browse all 59525

Trending Articles