WordPress.org

Support

Support » Plugins and Hacks » Hacks » TinyMCE Plugin to insert content into HTML View

TinyMCE Plugin to insert content into HTML View

  • 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!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TinyMCE Plugin to insert content into HTML View’ is closed to new replies.
Skip to toolbar