[TYPO3-core] RFC: Bug #2547: Properties of images are not saved

Martin Kutschker martin.t.kutschker at n0spam.blackbox.net
Mon Jan 21 20:43:23 CET 2008


Stanislas Rolland schrieb:
> This is an SVN patch request.
> 
> Type:
> Bugfix
> 
> Problem:
> In some cases, RTE image transformation (t3lib_parsehtml_proc) unsets 
> the style attribute and adds a (deprecated) border attribute.
> 
> Solution:
> Keep the style attribute, removing width and height properties it may 
> specify, but keeping other properties.
> Do not add a border attribute.

The explode-loop can be changed with this single preg_replace():

preg_replace('/((?:^|)\s*(?:width|height)\s*:[^;]*(?:$|;))/si', '', $style)

Masi


More information about the TYPO3-team-core mailing list