TinyMCE Image placement

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/6/2014 2:09:09 PM
Gravatar
Total Posts 221

TinyMCE Image placement

With the new version of TinyMCE they changed the default image dialog box. The new version by default doesn't allow you to assign a CSS Case or horizontal/vertical spacing to an image. These are really nice features to have for clients so they don't have to go into HTML view to add a little padding around images.

I researched this and see that in order to turn on an advanced tab when inserting an image this needs to be added to the integration js script:

image_advtab: true

Here's an example of the full featured example with the more advanced image popup:
http://www.tinymce.com/tryit/full.php

It would be great if this was turned on by default in Mojo, but even if it was a configurable option we could set in the mojoTinyMCE.config file that would work. I tried to find where in Mojo this is being initialized but couldn't find it.

2/6/2014 2:23:40 PM
Gravatar
Total Posts 18439

Re: TinyMCE Image placement

Hi Eric,

I just added this to the editor configurations that have images enabled in mojoTinyMCE4.config, you can make the same change in your copy, then touch web.config to clear the cache.

EnableImageAdvancedTab="true"

This will restore the advanced tab, the code already exists but the setting was missing.

Hope that helps,

Joe

2/6/2014 2:38:38 PM
Gravatar
Total Posts 18439

Re: TinyMCE Image placement

Note that mojoTinyMCE4.config is used for the newer version of TinyMCE and mojoTinyMCE.config is a legacy file if you needed for some reason to force an older version of TinyMCE. The syntax of the files is different from one another.

2/6/2014 2:42:10 PM
Gravatar
Total Posts 221

Re: TinyMCE Image placement

Thanks Joe, that's what I call fast work!!!  :)

I caught that about the code change. I think it's just the old file name I kept since I share the same config files across all my CMS installs (virtual directory in IIS). Works good if you have a lot of installs and want to keep consistent without tons of manual updating.

2/6/2014 2:47:54 PM
Gravatar
Total Posts 18439

Re: TinyMCE Image placement

Thanks for the beers Eric! Much appreciated.

fyi, I noticed the beer order confirmation email sent to you bounced back with this error:

Remote server returned the following error:

    499 [Bounce List] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

2/6/2014 2:55:06 PM
Gravatar
Total Posts 221

Re: TinyMCE Image placement

You are welcome, you deserve many more!

Yea, I think I remember something about that email problem. I block email from a number of non-US countries (helps so much with spam). I believe that's the issue there. It's usually not a problem, must be an unusual country processing that email... I have the main countries open (not Russia, China, etc).

You must sign in to post in the forums. This thread is closed to new posts.