Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1114827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:03:57+00:00 2026-05-17T03:03:57+00:00

I am using a plugin for wordpress called CMS its a plugin that makes

  • 0

I am using a plugin for wordpress called “CMS” its a plugin that makes wordpress more CMS like.
http://plugins.trendwerk.nl
In particular it adds multiple text “blocks” to a template, each can be edited in the post.php script using multiple tinymce editors.

The problem I am having is that you can only place images into the main or default editor, according to the author of CMS the only fix is to place an image into the main content editor and dragging it to the editor in question. supposedly its impossible to put the image into one of the block editors.

This does not always work, for some reason it uses a relative link when dragging and dropping from one editor to another, this breaks the site.

What I would like to do is to add the ability to insert images into individual tinyMCE edit boxes.
When an image is inserted it is inserted into the activeEditor. but the active editor always appears to be the main editor.

When the page is created any textarea with the class theEditor is converted to a tinyMCE editor, one would assume clicking on an editor would then set that editor to the active editor, it does not appear to. or alternativally clicking on the “add an image” icon deactivates it (loses focus).

Does anyone know how I can set the activeEditor? perhaps when the user click on the “add an image” icon I can update the active editor.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T03:03:58+00:00Added an answer on May 17, 2026 at 3:03 am

    WordPress does change the editor, sadly its in an onclick event in the toolbar that holds the icons. the event bubbles up from the a tag and calls the following javascript:

    if (typeof tinyMCE != "undefined" && tinyMCE.activeEditor) {
          tinyMCE.get("content").focus();
          tinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getBookmark("simple")
    }
    

    As you can see the editor”content” is hardcoded into it.
    it then bubbles up even further to another script which opens the media iframe I needed to keep this event so I couldnt just capture and cancel the event.

    To solve the problem I changed the above to if (typeof tinyMCE != "undefined" && tinyMCE.activeEditor) this means if the editor is not already set then change it to the hardcoded value.

    Then in my own icons onclick method I change the editor to the one of my choice.

    Sadly this means I had to change the wordpress core files but there was no easy way to do it in the plugin. It can be done of course but requires replication of the wordpress events. not sure if that’s a good or bad thing.

    I will pass what I have done along to the writer of the plugin and he can make the changes into his plugin if he so chooses.

    DC

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using following WordPress plugin to send email. http://coffee2code.com/wp-plugins/configure-smtp/ I have done configuration,
I'm using a plugin called http://www.jigoshop.com with Wordpress (both the latest versions) and I'm
On my WordPress site, I'm using a plugin called Vera Meta Boxes that lets
I am using Wordpress Custom Field Template Plugin - http://wordpress.org/extend/plugins/custom-field-template/ I create some File
I'm using wordpress + ajax calendar future post plugin ( http://wordpress.org/extend/plugins/wordpress-plugin-ajax-calendar-with-future-posts/ ) + tiptip
I am using this plugin http://wordpress.org/extend/plugins/simple-rss-feeds-widget/ This works fine for me. i am using
I'm using a WordPress plugin called Cartpauj PM for private messages, and I want
I am using a wordpress plugin called GD Star Rating to allow my users
I am using this plugin in Wordpress http://www.iwebix.de/front-slider-wordpress-plugin-demo/ As you can see in the
I am using a WordPress plugin called feedwordpress in order to run a planet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.