fnagel / generic-gallery

TYPO3 extension: Generic Gallery - One gallery to rule them all!
https://extensions.typo3.org/extension/generic_gallery/
GNU General Public License v3.0
7 stars 12 forks source link

Switch to RTE wizard #7

Closed froemken closed 7 years ago

froemken commented 7 years ago

Hello Felix,

the RTE differs from the RTE in tt_content column bodytext. It would be nice if you can switch to the new RTE implementation via wizard configuration.

Nice greetings

Frömmi

fnagel commented 7 years ago

Sure, sounds reasonable. Is this what you would expect?

'bodytext' => array(
    'exclude' => 1,
    'label' => 'LLL:EXT:generic_gallery/Resources/Private/Language/locallang_db.xlf:tx_genericgallery_domain_model_textitem.bodytext',
    'config' => array(
        'type' => 'text',
        'cols' => '48',
        'rows' => '5',
        'wizards' => array(
            '_PADDING' => 2,
            'RTE' => array(
                'notNewRecords' => 1,
                'RTEonly' => 1,
                'type' => 'script',
                'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.W.RTE',
                'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_rte.gif',
                'module' => array(
                    'name' => 'wizard_rte',
                ),
            ),
        ),
        'softref' => 'typolink_tag,email[subst],url',
    ),
    'defaultExtras' => 'richtext:rte_transform[mode=ts_css]',
),
fnagel commented 7 years ago

Any feedback on this? Does the config look good to you @froemken?

froemken commented 7 years ago

Looks good.