[patch] Default wordpress auto-save breaks plugin
-
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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[patch] Default wordpress auto-save breaks plugin’ is closed to new replies.