Page 1 of 2

TinyMCE and image/filebrowser?

Posted: Tue Feb 13, 2007 9:31 pm
by Hare
Hi

I'm using TinyMCE as my WYSIWYG-edior but it's using fckeditor as the filebrowser. Is this normal? I've actually unistalled fckeditor completely!

If I click the "add image" button in TinyMCE I get the popup window with image paths/sizes etc. If I look for an image via clicking the "browse" button I get FCKeditor's filebrowser (localization doesn't work in that case, which is a shame).

1.04 CMSMS, latest TinyMCE from the repositories.

I think it's extremely clumsy that there's no way I can browse the images with a thumbnail-view?

Re: TinyMCE and image/filebrowser?

Posted: Thu Feb 15, 2007 10:50 pm
by chead
According to the readme in the TinyMCE module, it looks like the file/image browser was ported from FCKEditor because TinyMCE doesn't have an open-source browser.

The developers of TinyMCE have a file manager (MCFileManager), but it isn't open source/free, and looks like it also needs their image manager (MCImageManager) to do everything the demo shows.

Someone could probably update it to read thumbnails created by the CMSMS Image Manager module.

Re: TinyMCE and image/filebrowser?

Posted: Fri Feb 16, 2007 7:58 pm
by alby
chead wrote: According to the readme in the TinyMCE module, it looks like the file/image browser was ported from FCKEditor because TinyMCE doesn't have an open-source browser.

The developers of TinyMCE have a file manager (MCFileManager), but it isn't open source/free, and looks like it also needs their image manager (MCImageManager) to do everything the demo shows.

Someone could probably update it to read thumbnails created by the CMSMS Image Manager module.
For info, there are 2 browser integration:
http://p4a.crealabsfoundation.org/tinyfck
http://p4a.crealabsfoundation.org/tinymcpuk

Alby

Re: TinyMCE and image/filebrowser?

Posted: Fri Feb 16, 2007 10:10 pm
by Elijah Lofgren
Hare wrote:
I think it's extremely clumsy that there's no way I can browse the images with a thumbnail-view?
I added that in TinyMCE SVN.  :) ;) :D ;D :o

Let me test again, and I'll try to make a new TinyMCE release with it. :)

Re: TinyMCE and image/filebrowser?

Posted: Fri Feb 16, 2007 11:12 pm
by Elijah Lofgren
I'll hold off on releasing a new TinyMCE until I get the go ahead from the latest commiter.

In the meantime, you might like DojoEditor: http://dev.cmsmadesimple.org/forum/foru ... =1003  :)

Later,

Elijah

Re: TinyMCE and image/filebrowser?

Posted: Fri Feb 16, 2007 11:28 pm
by cyberman
TinyMCE 2.10 is out (Core, not module) ...

Re: TinyMCE and image/filebrowser?

Posted: Sat Feb 17, 2007 2:50 am
by Elijah Lofgren
TinyMCE 2.0.5 has been released: http://dev.cmsmadesimple.org/frs/showno ... ase_id=761

Download here: http://dev.cmsmadesimple.org/frs/?group ... ase_id=761

Includes new TinyMCE 2.1.0 and thumbnail previews in image browser. :)

Enjoy,

Elijah

Re: TinyMCE and image/filebrowser?

Posted: Sat Feb 17, 2007 10:54 am
by Hare
This just made my day. A huge thank you.

Another great thing with this new release is that compression now works fine with FF! No more problems with button hovers and the editor loads a lot faster thanks to compression.

Thumbnails increased the usability to a totally new level. I had to set my file creation mask to 002 (instead of the default 022) to get the thumbnails working but now everything is running smoothly.

CMSMS is starting to look perfect. If only the filemanager would support changing filenames, but I guess that topic is better to be left to other threads. I definately think that TinyMCE should be made the default editor instead of FCKeditor.

Once again. Thanks!

Re: TinyMCE and image/filebrowser?

Posted: Sat Feb 17, 2007 4:51 pm
by chead
Exciting! Elijah, you are a whiz!

UPDATE: My issue below fixed. Turns out that it was my use of @ob_start('gzhandler'); in the admin/header.php, a tip for speeding page loads from another thread. Strange, though, as 2.0.3 worked with gzhandler. Restoring to @ob_start(); solved the issue.

Can I ask to have the "pasteplaintext" plugin added to the install? That's the one big feature missing that FCKEditor has, and it's how I keep clients from pasting in nasty OXML tags from their Microsoft Office files. I've posted it to the development forge here. For others, you can just download the plugin there and copy the "plaintext" folder to modules\TinyMCE\tinymce\jscripts\tiny_mce\plugins.

TinyMCE 2.0.5 isn't working for me on 1.0.4. It installs fine, but the textarea isn't activated as a WYSIWYG, even in the TinyMCE configuration panel with the test area at the bottom. I tried an update over 2.0.4, a clean install and manual upload of the files, but still no joy. Anything I can provide to help track down the issue?

Re: TinyMCE and image/filebrowser?

Posted: Sat Feb 17, 2007 5:50 pm
by Elijah Lofgren
Glad ya'll like it.  :D
chead wrote: Can I ask to have the "pasteplaintext" plugin added to the install? That's the one big feature missing that FCKEditor has, and it's how I keep clients from pasting in nasty OXML tags from their Microsoft Office files. I've posted it to the development forge here. For others, you can just download the plugin there and copy the "plaintext" folder to modules\TinyMCE\tinymce\jscripts\tiny_mce\plugins.
Added in latest SVN. Thanks!


Later,

Elijah

Re: TinyMCE and image/filebrowser?

Posted: Sat Feb 17, 2007 9:17 pm
by Greg
plaintext causes a javascript error

'tinyMCE.restoreClass is not a function'

and

'tinyMCE.restoreAndSwitchClass is not a function'

Re: TinyMCE and image/filebrowser?

Posted: Sat Feb 17, 2007 9:21 pm
by Elijah Lofgren
Greg wrote: plaintext causes a javascript error

'tinyMCE.restoreClass is not a function'

and

'tinyMCE.restoreAndSwitchClass is not a function'
Bug filed: http://dev.cmsmadesimple.org/tracker/in ... 2&atid=125

Thanks.

Re: TinyMCE and image/filebrowser?

Posted: Sat Feb 17, 2007 10:04 pm
by chead
Weird; it works for me. I did a clean install of Elijah's TinyMCE 2.0.5 and just put the plaintext folder from the zip I linked in the TinyMCE plugins directory and no issues. (I didn't try the SVN, though.)

Re: TinyMCE and image/filebrowser?

Posted: Sat Feb 17, 2007 10:14 pm
by Elijah Lofgren
chead wrote: Weird; it works for me. I did a clean install of Elijah's TinyMCE 2.0.5 and just put the plaintext folder from the zip I linked in the TinyMCE plugins directory and no issues. (I didn't try the SVN, though.)
IT works here too. ;)

Re: TinyMCE and image/filebrowser?

Posted: Sun Feb 18, 2007 10:15 pm
by Jonny
Thanks for updating TinyMCE for us. A great improvement. For many end-users the WYSIWYG editor is just about the most important element of the CMS.

Great to have thumbnails in the image manager. The only small niggle is that the filesize reported is that of the thumbnail rather than the actual image.