I am using wp.mce.views.register to create a simple view for my shortcode in the tinymce editor, this works fine but i am looking for a way to have "nested" shortcodes e.g.

        <p>Some info here!</p>

and to have them rendered nicely.

This is simple enough frontend with do_shordcode($shortcode_content); but I havent been able to find an equivalent js/tinymce function.

Do anyone know how to do this if it is possible?

  • any luck on this? I've spent a week try to solve wp.mce.views.register for nested shortcode. It seems currently it's impossible due to the object generated from wp.mce.view text property didn't include the close tag for shortcode and the content itself. – nonsensecreativity Feb 13 '17 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.