inserting images into multiple tinyMCE editors in wordpress -


I am using a plugin called "CMS" for WordPress which is a plugin that allows WordPress to get more CMS Makes it In particular, this adds several "text" blocks to a template, each post can be edited in the php script using many TinySeas editors.

The problem is that you can only place the image in the main or according to the author of the default editor, CMS, only one thing is to put an image in the main content editor and drag the editor in question. It is assumed that it is impossible to put the image in one of the block editors.

It does not always work, for some reason it uses a relative link, when one drags it off from the editor and leaves it, then this site breaks down.

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

When the page is created with a text, the editor is turned into a small MEEE editor, then clicking on an editor will set the editor active editor, it does not appear. Or alternativally clicking on the "Add an image" icon disables it (Focus Loses)

Does anyone know how I can set an active editor? Maybe when the user clicks on the "add an image" icon, I can update the active editor.

Changes to the WordPress editor, unfortunately, in the toolbar that holds an icon in an onclick event. Bubbles above the event tag and makes the following Javascript call:

  if (typef tinyMCE! = "Undefined" & amp; amp; amp; amp; amp; amp; amp; ;; tinyMCE.activeEditor) {tinyMCE.get ("content") .focus (); TinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getbookmark ("simple")}  

As you can see that the editor "content" is strict in it. It further bubbles further bubbles that another script that opens the media iframe, i need to maintain this phenomenon, so that I could capture the event and cancel it.

To solve the problem, I changed the from above (typefile MEE! = "Undefined" & amp; amp;;; tinyMCE.activeEditor) It is that if the editor is not already set, then convert it to hardcod value.

Then click on your own icons method I change an editor of my choice.

Unfortunately this means that I had to change the WordPress Core files, but there was no easy way to do this in the plugin. This can definitely be done but WordPress event replication is required. Not sure if this is a good or a bad thing.

I will do whatever I have done with the author of the plugin, and if he chooses it, he can make changes to his plug-in.

DC


Comments