Closed (outdated)
Project:
TinyMCE
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2008 at 09:59 UTC
Updated:
14 Jan 2021 at 19:50 UTC
Jump to comment: Most recent
Comments
Comment #1
bardkerbie commentedI was having this problem with the Advanced Image module as well. A quick look at the TinyMCE forums pointed me towards the solution:
If you're using the Advanced Image plugin, you need to edit line 28 of the plugin_reg.php file that's in the main module plugin. Instead of this:
add 'style' to the end of the line after 'name' so that you have this:
once you implement that, styles will be allowed past TinyMCE and you'll be in business again.
Comment #2
awolfey commentedI'm having this same problem. After making the change above I can add and save styles in plain text view, but can't get it to stick if I save in rich text view.
Any thoughts?
Comment #3
superflyman commentedHaving the same problem using version 6.x. Left align gets stripped out.
Comment #4
tgvcdr commentedyou just need to add "style" to flash:
Look at this:
http://drupal.org/node/126216#comment-803606
and this:
http://drupal.org/node/126216#comment-980250
Comment #5
hduyker commentedNote that there are two places where the 'style' attribute can get stripped out.
One is by TinyMCE, when you don't have it in the 'extended_valid_elements' attribute.
The other is by Drupal, when you use Filtered HTML -- the 'style' element is always stripped out of
(and other) tags, even when the tag itself is allowed.
The first can be solved by putting style in the allowed elements list in the TinyMCE configuration (in plugin_reg.php, as noticed).
The second can be solved by either
$plugins['advimage']['inline_styles'] = array('false');This makes (at least) the advimage TinyMCE plugin emit "old-style" HTML again, without (as many) style elements.
Comment #6
Riccardo83 commentedI have the same problem using Wysiwyg API and TinyMCe 3, what can I do?
Theres no plugin_reg.php to edit.. ?
Comment #7
mupsi