img style issue withTinyMCE

View: New views
3 Messages — Rating Filter:   Alert me  

img style issue withTinyMCE

by jeff gerbracht :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I couldn't add a style to an image using the TinyMCE editor, either by using the image dialog or by editing html directly.  Neither were saved to the database.  However, once I switched editors to FCKEditor, I could set the style correctly.  Switching back to TinyMCE and saving the page again (with no changes) resulted in the style element being deleted from the img tag.
  Any ideas on a fix for this?
      Thanks,
            Jeff

Re: img style issue withTinyMCE

by Roman Puchkovskiy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

TinyMCE disallows some attributes of some elements (like style of images
in your case). You may tune it.
To do this, you need to modify ContentEditorTag class in AtLeap. Default
config for TinyMCE is hard-coded near 730-760 lines. Possibly you will
want to add 'style' to square brackets for 'img' in
'extended_valid_elements'. After modifying, you will need to refresh.
Documentation on related TinyMCE config entries is here:
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/extended_valid_elements 
and here:
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements

Roman Puchkovskiy

jeff gerbracht writes:
> I couldn't add a style to an image using the TinyMCE editor, either by using
> the image dialog or by editing html directly.  Neither were saved to the
> database.  However, once I switched editors to FCKEditor, I could set the
> style correctly.  Switching back to TinyMCE and saving the page again (with
> no changes) resulted in the style element being deleted from the img tag.
>   Any ideas on a fix for this?
>       Thanks,
>             Jeff


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: img style issue withTinyMCE

by jeff gerbracht :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, that did it. I'd tried changing the tiny_mce.js and tiny_mce_src.js files in the application but that didn't do it
   Cheers
     Jeff