I tried to put the file_browser_callback: "imceImageBrowser", declaration in the simple mode textarea and indeed the browse icon appears in the different places, but..... when you click the browse icon no browser window pops up. I have now exactly the same declarations in both simple and advanced mode, but the imce browser will only work in the advanced declaration textarea.

In my site the advanced mode user wants to put PHP code, so with tinymce inicially turned off, but still wanting to use imce when necessary. The simple mode user should be able to insert and upload images easily and have tinymce turned on by default. Because tinytinymce has no way to let the user decide the default on/off status, I just need to use the simple mode with active imce and elements declared and the advanced mode without elements.

I consider this a bug, because the description of the administration page suggests that the user is fully in control by means of the declarations. Apparently the declaration textareas are treated differently taking away this freedom of control.

CommentFileSizeAuthor
#1 tinytinymce.module.patch1.67 KBñull

Comments

ñull’s picture

StatusFileSize
new1.67 KB

This patch seems to do it what I want.

ñull’s picture

Status: Active » Needs review
Steve Lockwood’s picture

Hi com2 - the approach looks good to me and, obviously, adds greater flexibility to the module. I haven't reviewed the patch in detail but will do so soon and incorporate into the next release.

It's worth pointing out though that, if you turn off the text editor and input some php, beginning with <?php, the next time you load the page tinymce will remain turned off. So, once you have started to enter php, the module will recognise it and will stay turned off until the <?php is removed.

Steve

Steve Lockwood’s picture

Status: Needs review » Fixed

Hi com2,

I've integrated your changes into the latest development snapshot for version 6. I took a slightly different approach - but the net effect is that simple and advanced modes should work in exactly the same way.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.