全屏模式下的TYPO3富文本编辑器(RTE)可以使用,但不能在我的扩展程序中使用?

时间:2016-08-23 12:13:32

标签: typo3 fullscreen rich-text-editor typo3-extensions extension-builder3

在我的标准内容元素text & media中,RTE(htmlarea,Rich-Text-Editor)的全屏模式正常运行。

但是 - 我已经写了一个扩展(通过扩展构建器),如果我尝试全屏使用RTE,我会遇到以下错误:

Module wizard_rich_text_editor is not configured

这是我的TCA,这是我的错误? 'TYPO3-RTE'工作正常,因此我的以下代码中必定存在错误。你怎么看?

    'description' => array(
        'exclude' => 1,
        'label' => 'LLL:EXT:xyz/Resources/Private/Language/locallang_db.xlf:tx_xyz_domain_model_product.description',
        'config' => array(
            'type' => 'text',
            'cols' => 40,
            'rows' => 15,
            'eval' => 'trim',
            'wizards' => array(
                'RTE' => array(
                    'icon' => 'wizard_rte2.gif',
                    'notNewRecords'=> 1,
                    'RTEonly' => 1,
                    'module' => array(
                        'name' => 'wizard_rich_text_editor',
                        'urlParameters' => array(
                            'mode' => 'wizard',
                            'act' => 'wizard_rte.php'
                        )
                    ),
                    'title' => 'LLL:EXT:cms/locallang_ttc.xlf:bodytext.W.RTE',
                    'type' => 'script'
                )
            )
        ),
    ),

有谁知道这个问题?谢谢你的帮助。

此致 斯蒂芬

1 个答案:

答案 0 :(得分:1)

TYPO3 7.x和8的工作示例是

    'bodytext' => [
        'exclude' => 0,
        'l10n_mode' => 'noCopy',
        'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext_formlabel',
        'config' => [
            'type' => 'text',
            'cols' => 30,
            'rows' => 5,
            'softref' => 'rtehtmlarea_images,typolink_tag,images,email[subst],url',
            'wizards' => [
                '_PADDING' => 2,
                'RTE' => [
                    'notNewRecords' => 1,
                    'RTEonly' => 1,
                    'type' => 'script',
                    'title' => 'Full screen Rich Text Editing',
                    'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_rte.gif',
                    'module' => [
                        'name' => 'wizard_rte',
                    ],
                ],
            ],
        ]
    ],

名称应为wizard_rte

相关问题