我想将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)