I am trying to add default content when I fire wp.editor.initialize(). This is code.

  wp.editor.initialize( editor_id, {
      mediaButtons: true,
      quicktags: true,
      tinymce: {
    } );

I am looking for a way to add content when this loads. I have tried .




Feel like I am missing something. Thanks for any help.

  • Can you not just output content inside the textarea that you're making into an editor? – Jacob Peattie Dec 7 '18 at 17:06

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.