Feature #17438
closedRemoving style attribute for images
0%
Description
Hi,
I would like to know if there's a way, and how, to tell htmlarea to not accept style attributes for images, as I prefer using classes than attributes.
The same way, is there a way to disable the image properties dialog box?
Thanks
(issue imported from #M5902)
Updated by Franz Koch over 17 years ago
as for disabling style attributes for images - simply set this pageTS:
----
RTE.default.proc.entryHTMLparser_db.tags.img.allowedAttribs = class,alt,title,border,align,src,width,height
----
you can define there which attributes you would like to allow - same for any other HTML-Tag.
edit: sorry - there was a dot missing in the TS snippet
Updated by Uschi Renziehausen over 17 years ago
Hello,
it would be really great if one could disable some fields of the image dialogue, especially the margin stuff, because it makes rarely ever sense to have the same margins for top and bottom or left and right.
Prosit, Uschi
Updated by Stanislas Rolland almost 17 years ago
Sorry, this was not documented. If you set:
RTE.default.buttons.image.options.removeItems = image
then the properties editing tab for the current image will not be presented.
The manual will be updated for TYPO3 4.2.
Updated by Stanislas Rolland almost 17 years ago
Feature added in SVN TYPO3core trunk revision 2925 (for inclusion in TYPO3 4.2 beta1.