WordPress.org

Ready to get started?Download WordPress

Forums

TinyMCE Plugin to insert content into HTML View (3 posts)

  1. Max Chirkov
    Member
    Posted 2 years ago #

    One of my exisiting plugins utilizes TinyMCE plugin system. The plugin uses a TinyMCE Popup via Thickbox and inserts content into the Editor only in Visual View, but not in HTML View.

    This is the code that inserts my content into the Visual Editor:

    window.tinyMCE.execInstanceCommand(
        window.tinyMCE.activeEditor.id,
        'mceInsertContent',
        false,
        content
    );

    When I'm in HTML view, the plugin works, but when I click "Insert" the editor's content textarea stays unchanged. No errors being displayed either.

    Does anyone have an idea on how to make it to work with regular HTML Editor?

    Thanks!

  2. yoffegil
    Member
    Posted 1 year ago #

    Hi Max,
    I'm facing the same problem. Did you find a solution eventually?

  3. Max Chirkov
    Member
    Posted 1 year ago #

    No, I don't believe I did. I had a tiny pet project, which I abundant due to lack of demand.

Topic Closed

This topic has been closed to new replies.

About this Topic