小编Ren*_*amm的帖子

允许在ckeditor中使用oembed标记

我想将oembed标签放入TYPO3的ckeditor RTE中.这样我想把Instagram,facebook或twitter等社交帖子放到一些新闻文章中(在某些文本的中间).

为此,我已经激活了ckeditor的嵌入插件并将oembed标签processing放入allowedTags.我还在常量中定义了oembed标签styles.content.allowTags.

在这里我的yaml:

imports:
    - { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" }
    - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" }
    - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" }

editor:
    config:
        contentsCss: "EXT:mysitepackage/Resources/Public/Css/rte.css"

        stylesSet:
            - { name: "Lead", element: "p", attributes: { 'class': 'lead' } }

        toolbarGroups:
            - { name: styles, groups: [ format, styles ] }
            - { name: basicstyles, groups: [ basicstyles ] }
            - { name: paragraph, groups: [ list, indent, blocks, align ] }
            - "/"
            - …
Run Code Online (Sandbox Code Playgroud)

typo3 ckeditor typo3-8.x

10
推荐指数
1
解决办法
838
查看次数

标签 统计

ckeditor ×1

typo3 ×1

typo3-8.x ×1