CKEditor总是将p标签包裹在iframe周围>>

问题描述 投票:1回答:1

[我尝试添加允许TYPO3 RTE CKEditor内含iframe的可能性。我发现标记并没有立即被CKEditor或TYPO3的DB解析器杀死。

但是CKEditor 总是

在iframe周围包裹一个p标签,这显然是不正确的。我到处搜索,尝试了不同的设置或它们的组合,但均未成功。

我添加iframe代码后(无论是直接在源代码模式下还是通过iframe插件都没关系),它立即被包装在p标签内。因此,在TYPO3中绝对没有解析错误,因为这一切都发生在编辑器本身中。

有什么建议吗?这是我当前用于RTE的YAML配置。

# Load default processing options
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" }

# Add configuration for the editor
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
editor:
  config:

    format_tags: "p;h1;h2;h3;h4;h5;pre"

    toolbarGroups:
      - { name: styles, groups: [ styles, format ] }
      - { name: basicstyles, groups: [ basicstyles ] }
      - { name: paragraph, groups: [ list, indent, blocks, align ] }
      - { name: links, groups: [ links ] }
      - { name: clipboard, groups: [ clipboard, cleanup, undo ] }
      - { name: editing, groups: [ spellchecker ] }
      - { name: insert, groups: [ insert ] }
      - { name: tools, groups: [ table, specialchar, insertcharacters ] }
      - { name: document, groups: [ mode ] }

    justifyClasses:
      - text-left
      - text-center
      - text-right
      - text-justify

    extraPlugins:
      - justify
      - autolink

    removePlugins:
      - image

    removeButtons:
      - Anchor
      - Underline
      - Strike
      - Styles

    allowTags:
      - iframe

    allowTagsOutside:
      - iframe

    extraAllowedContent:
      - 'iframe(*){*}[*];'

processing:
  allowTags:
    - iframe

  allowTagsOutside:
    - iframe

[我尝试添加允许TYPO3 RTE CKEditor内含iframe的可能性。我发现标记并没有立即被CKEditor或TYPO3的DB解析器杀死。但是CKEditor总是...

iframe ckeditor typo3-9.x
1个回答
0
投票

我认为您的问题是rte.ts中的旧配置仍然被加载。我将此添加到我的default.yaml:

热门问题
推荐问题
最新问题