Feature #17438
closed
Removing style attribute for images
Added by AinulindalĀ« over 17 years ago.
Updated over 16 years ago.
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)
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
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
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.
Feature added in SVN TYPO3core trunk revision 2925 (for inclusion in TYPO3 4.2 beta1.
Also available in: Atom
PDF