Project

General

Profile

Actions

Feature #17438

closed

Removing style attribute for images

Added by AinulindalĀ« over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-07-05
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)

Actions #1

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

Actions #2

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

Actions #3

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.

Actions #4

Updated by Stanislas Rolland almost 17 years ago

Feature added in SVN TYPO3core trunk revision 2925 (for inclusion in TYPO3 4.2 beta1.

Actions

Also available in: Atom PDF