[TYPO3-RTE] allowedAttribs useful?
Martin Kutschker
masi-no at spam-typo3.org
Tue Oct 7 11:26:50 CEST 2008
Uschi Renziehausen schrieb:
> Hi Masi
>
>>>
>>> what I am currently dreaming of is a setting
>>> tags.tagname.allowedStyleProperties.
>>> This would enable me to allow my editors to set style="width:30%" on a
>>> table, but not border etc.
>>
>> There is an extension which offers limited CSS filtering for the RTE.
>>
>> And yes, I want that too! But alas, the CSS syntax is quite complex and
>> has many options. You wrote no borders, but that will disable quite a
>> number of CSS properties.
>>
> This is exactly what I WANT.
> My theory is that ususally you do NOT want any style attributes for any
> tag because most of the styling is done via classes. So the style
> attribute itself would only be kept if it is set under
> tags.tagname.allowedAttribs.
>
> And then you define a positive list of style properties you want to
> allow for each tag. The proc part then has to look up what style
> properties are set on tag x and if one or two are not amongst the
> allowedStyleProperties they will be removed. Should happen on the way to
> the database.
I see. We could write a spec for it, but I miss already two specs you
promised to deliver :-)
Masi
PS: What I want is that the RTE uses as little style attributes as
possible. I know that some HTML are attributes are deprectaed, but hey
they work. And if the RTE wouldn't use them I could simply drop all
style attributes and wouldn't need to parse the CSS.
Generally speaking there are for some styling options three ways: class,
style or attribute. Classes are nice. It'd be great if we could have
them for all styling options where feasible (eg missing for vertical
alignment). If I cannot have classes I'd like to use attributes (unless
I get CSS parsing) for easier configuration.
More information about the TYPO3-project-rte
mailing list