Hi there
I'm trying to integerate Moxiecode ImageManager into Tinymce, without any success so far. I've followed the integration instructions and have added the required code into the tinymce.module. Unfortunately Imagemanager still does not load from within Tinymce.

If anyone has successfully integrated Imagemanger into Tinymce, I'd be really grateful for some advice.

Thanks

Comments

code rader’s picture

Is it anything like the advimage plugin that comes with TinyMCE?
http://drupal.org/node/25660

trevornz’s picture

Hi lubtex

Thank you for replying.

This particular ImageManager is made by moxiecode the same people that developed Tinymce.

http://tinymce.moxiecode.com/plugins.php

There's an ImageManager demo on their web site which works very well, allowing users to add and edit images through the image button in the Tinymce wysiwyg editor (The picture icon) as opposed to using the Drupal image assist module or similar. As good as these are, to me the Moxiecode ImageManager just feels like a tidier way (and simpler for users) of adding and editing images.

Unfortunately Moxiecode's ImageManager is a right royal pain to implement. They provide example code with the manual which looks like it should be added into the Tinymce module, and 'hey presto' it doesn't work. I have contacted support at Moxiecode who having keenly accepted my dosh were unsurprisingly less interested to help out on installation, and suggested I should try the Drupal forums for advice instead. Hmm, there's nothing like good customer support to make you feel like a valued customer!

So here I am stuck with a beautifully programmed and potentially very handy piece of non-functioning javascript.

If anyone has got this to work I'd love to hear from them.

trevornz’s picture

Further to my last post here's the link to their ImageManager php demo.

http://tinymce.moxiecode.com/example_full.php

Click on the insert/edit image icon (tree) in TinyMce

It's really very good I think, you can browse/upload/size/add folders and crop images with it.

I just wish I could get the thing to work.

TinyMCE’s picture

Answer to trevornz:

I think that we helped you as much as we could do and that we made it clear that is seems to be a Drupal issue rather than a issue with MCImageManager or TinyMCE. Since the error message you posted on our forum clearly isn't thrown within a page that we have created but within a module inside Drupal I can say that I'm 98% certain that this is a Drupal/TinyMCE integration issue. But maybe we sould have been even clearer on this topic.

And when it comes to installing the MCImageManager, it's nearly as easy as it gets. Copy the files to a directory, insert two lines of code and you should be done. But we are planning to make it even easier in the future, futurue releases will probably just need one line of code instead of two. :)

Sorry that we couldn't help you better but I hope you understand that we can't give support outside the scope of our application. If we where to give support on issues related with other systems we would have charge a lot more for the application since we would then need to know a lot about every system out and there and it takes time to learn all possible issues of those systems. We are already placing lots of time to manage various weird ways people have configurated PHP. :(

Regards
Moxiecode Systems

kertal’s picture

did you manage it? or doesn't it work .i was thinking of using this imageManager too .. any experiences with Moxiecode Filemanager?

TinyMCE’s picture

Ive looked into this some more over the weekend.

Getting the MCImageManager (or filemanager) to work with Drupal was no problem, I got a nice little config option (checkboxes) for enable/disable file and imagemanager.

The problem is authenticating the user through drupal, when they access the imagemanager or filemanager, a custom authenticator has to be built. As far as I can see, the only way to do this is to re-build the way Drupal handles sessions, as an authenticator to the file and imagemanager.

This authenticator would have to:

  • Integrate with the session system that drupal uses, database driven.
  • Get database access info from within drupal to avoid more configuration, might have to put the file and imagemanager in a special folder so the configuration can be included dynamicly in the authenticator.
  • Handle the different profiles that exists within drupal, so se who is authenticated for the usage of image and filemanager.

I don't know enough about drupal to make this authenticator, and I don't exactly have time to dig into it more either.

However, if anyone would feel like creating this authenticator, I would be willing to give away a Single license for the MCFileManager and MCImageManager on completion. You should be able to construct one without actually having the file or imagemanager, you can get quite far with the documentation. If you need to purchase one, I will refund you the purchase once the authenticator has been completed. It will be up to us to decide if the authenticator meats the requirements and standards to be accepted, and thus included with the MCImageManager and MCFileManager. You only need to make one for the file OR imagemanager, it can simple be copied over to the other software and it should work fine.

trevornz’s picture

Hi Kertal

Nope, I never got this one going, just too hard (for me) to implement. A really good bit of javascript though and 'hats off' to Moxiecode for it's creation.

Also Hi Moxiecode

Thanks for your responses.

I'd be really interested to know more about:

"Getting the MCImageManager (or filemanager) to work with Drupal was no problem, I got a nice little config option (checkboxes) for enable/disable file and imagemanager"

Any advice you could give me about ImageManager installation with Drupal 4.6 would be greatly apprecieted.

sangamreddi’s picture

Status: Active » Fixed

Hi All,

No need of coding for integerate Moxiecode ImageManager into Tinymce.

Just copy the imagemanger folder into tinymce module that's it.
Because the integration has been doen already in the tinymce.module,v 1.37
you can see the code at line 202.

Directory structure
-modules
--tinymce
---imagemanager/
---tinymce/
---tinymce.module
---plug_reg.php.

After studying the entire code of tinymce module i found it. Need to work on filemanager.

Sunny
www.gleez.com

Anonymous’s picture

Status: Fixed » Closed (fixed)