I want to keep the data what user wrote into the WordPress TinyMCE editor using the WebStorage API. I initiated the editor in front end in one of my plugin.
Condition is, after filling up the textarea user might choose whether to register or login, and at that state they need to refresh the page. I want to keep the typed texts into the [editor enabled] textarea even after the page refresh. I think webStorage would be the key.
But I can't trigger javascript (jQuery) into that TinyMCE editor enabled field. I can make it work while 'tinymce' => false
.
Is there any way I can save webStorage onKeyUp, either:
- injecting JavaScript to TinyMCE, or
- by any other method?
wp_editor()
. If you have any active solution that can assist me triggering TinyMCE on any<textarea>
in front end, then it'd be much appreciated. – Mayeenul Islam