Issue Bug Closed

#77178TCA type='text' with 'readOnly'=true renders newlines as <br /> tags

Viktor Livakivskyi 07/20/16, 16:44 updated 03/04/20, 15:19

Description

Hi,

As outlined in a title, the problem is with readOnly state of textareas in TCA.

TCA without readOnly

'comment' => [
    'exclude' => 0,
    'label'   => 'Coment',
    'config'  => [
        'type'     => 'text',
    ],
]

renders such a picture:
tca-text.png

TCA with readOnly TRUE

'comment' => [
    'exclude' => 0,
    'label'   => 'Coment',
    'config'  => [
        'type'     => 'text',
        'readOnly' => true
    ],
]

renders like this:
tca-text-readonly.png

In case #32412 is implemented, this may lead to funny results on save of form with readOnly textares.

TYPO3 7.6.9

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.