Hi, anytime on of our content managers uses the image button in TinyMCE to place an image, right left, margin, border, the styles get stripped on submit. This issue appears in Mac OS 10, FireFox 2; Windows XP IE 7 and FF 2.
TinyMCE Info:
version = "5.x-1.9"
project = "tinymce"
datestamp = "1185893413"
It's an issue for obvious layout reasons. It would be great to get this dialed in, so they content managers can rely on the WYSIWYG without having to learn more HTML and CSS.
The image styling disappears when rich-text is turned off/on or when left on and the node is submitted. Only the image source and dimensions are rendered in the result.
Thanks for any help.
Comments
Comment #1
paulrooney commentedTry switching the input format from Filtered HTML to Full HTML.
Comment #2
nickco commentedIt is for most TAs
Comment #3
nicknickoli commentedHi, I'm still seeing this issue and plan to post something at Moxio. We're now running TinyMCE v3.0.... Thanks for any workarounds.
Comment #4
Steve Lockwood commentedThe command that initialises TinyMCE looks a bit like this:
The default setup (or certainly the one on Moxiecode's example page) misses out on one important element: the img element should have the style attribute in its list of permitted attributes. So it should look something like this:
Ie: img[...attributes...|style|...more attributes...]
I'm not sure where this gets set either in the tinymce module or in tinyMCE itself. If you scan the code for "extended_valid_elements" you should find it.
Hope this helps
Steve
ADDITION: I think this is set in tiny_mce_src.js on line 6470 position 359 - though the actual code that runs is in tiny_mce.js. Also see the README.txt file for the tinymce module for another way to extend the init parameters.
Comment #5
bavarian commentedYes, in the plugin_reg.php-file (/sites/all/modules/tinymce/plugin_reg.php) there are several instances that I had to change.
"Change" here means: adding |style| in those attributes ...
This resolved the problem for me
Comment #6
nicoloye commented