Project

General

Profile

Actions

Bug #77178

closed

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

Added by Viktor Livakivskyi over 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2016-07-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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 with readOnly TRUE

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

renders like this:

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

TYPO3 7.6.9


Files

tca-text.png (3.1 KB) tca-text.png Viktor Livakivskyi, 2016-07-20 16:44
tca-text-readonly.png (3.46 KB) tca-text-readonly.png Viktor Livakivskyi, 2016-07-20 16:44
Bildschirmfoto 2020-03-04 um 15.18.24.png (10.5 KB) Bildschirmfoto 2020-03-04 um 15.18.24.png readonly Georg Ringer, 2020-03-04 15:18
Bildschirmfoto 2020-03-04 um 15.18.40.png (9.77 KB) Bildschirmfoto 2020-03-04 um 15.18.40.png editable Georg Ringer, 2020-03-04 15:19
Actions

Also available in: Atom PDF