Hi Markus,
Thanks for your answer. Well, actually, I'm running into a similar issue with the class attribute.
<img class="caption" ...>
gets stripped although I have set my img[*] in the list of tags and attributes.
all the other attributes remain, but not the class="caption".
Any reason why this wouldn't be working?
Comments
Comment #1
gafir777 commentedhere is what i get in tiny mce:
and here is the output:
the class="caption" has been removed.
I actually tried to use the FULL HTML input format and turn off all other filters than Wysiwyg filter and it works, however, if i do the same for my custom input filter, the class is stripped. So I don't think it's related to the other input filters in the custom input format. Very weird.
Again, in the list of tags allowed, I have
img[*]I have also tried
img[*|class<caption]and it has the same effect, which is none...:(
Comment #2
gafir777 commentedHere is the list of allowed tags as described below tinymce:
and in my wysiwyg filter settings:
Comment #3
gafir777 commentedAll other filter than wysiwyg filter is unchecked:
Choose the filters that will be used in this filter format.
HTML corrector >> unchecked
HTML filter >> unchecked
Line break converter >> unchecked
URL filter >> unchecked
WYSIWYG Filter >> checked
Comment #4
gafir777 commentedsomething causes the class="caption" to be stripped, but I can't see what. Thank you very much for your help, I've tried to bring as many element as I could... let me know if you need something else.
Comment #5
markus_petrux commentedIn the configuration screen of the filter, the description of the field "HTML elements and attributes" has a section labelled "Additional notes". The second point reads:
In the "Advanced rules" section you should enter somthing in the field "Rules for Class elements".
The reason for this additional option being required is that users could use any CSS class that you have defined in your site, and they could break the layout. So you should probably better create a few CSS classes they can use safely.
Comment #6
markus_petrux commentedComment #7
markus_petrux commentedOMG! Sorry for all separated replies. :(
Comment #8
gafir777 commentedHi Markus,
Thanks for your help! Not sure to understand what you mean with this, but i'll try to figure it out. Concretely, I don't see what I can do to fix it.
Comment #9
gafir777 commenteddo you have any example I could use for Rules for Class elements? Is there a documentation page for this? I'm not very familiar with it.
Comment #10
markus_petrux commentedThere's a description for each field on the filter settings panel, also there are a few examples on each one. Maybe what I wrote is not easy to follow. :-|
Comment #11
markus_petrux commented