madeyourday / contao-rocksolid-custom-elements

RockSolid Custom Elements Contao Extension
http://rocksolidthemes.com/de/contao/plugins/custom-content-elements
MIT License
48 stars 12 forks source link

TinyMCE not initialized, when creating new list element #117

Closed fritzmg closed 4 years ago

fritzmg commented 4 years ago

Under Contao 4.9.1, a TinyMCE within a list element is not initialized, when you create a new element. Example:

return [
    'label' => ['List', ''],
    'types' => ['content'],
    'contentCategory' => 'media',
    'standardFields' => ['cssID'],
    'wrapper' => ['type' => 'none'],
    'fields' => [
        'elements' => [
            'label' => ['Elements'],
            'elementLabel' => '%s. element',
            'inputType' => 'list',
            'minItems' => 0,
            'fields' => [
                'text' => [
                    'label' => ['Text', 'Text for this element.'],
                    'inputType' => 'text',
                    'eval' => ['rte' => 'tinyMCE'],
                ],
            ],
        ],
    ],
];

Once you save or load the element, all TinyMCEs will be initialized.

fritzmg commented 4 years ago

Hm, cannot reproduce this anymore.