【问题标题】:How to insert images to bodytext in tx_news using ckeditor in TYPO3 8.7.X如何在 TYPO3 8.7.X 中使用 ckeditor 将图像插入 tx_news 中的正文
【发布时间】:2018-10-12 09:39:46
【问题描述】:

我正在尝试在news 插件中添加使用rte_ckeditor_image 插件添加图像的功能。我已经完成了手册中描述的所有步骤(创建 RTE 文件夹,将代码片段添加到 ext_localconf.php 文件),但仍然缺少添加照片的可能性。

我做错了还是news的插件无法处理?

附:有什么方法可以全局运行rte_ckeditor_image ext 还是我必须单独配置每个插件?

【问题讨论】:

  • 我从代码中看到,还有一个静态的打字稿要加载(打字稿模板>编辑整个记录>从扩展中包含静态)。
  • 嗨,加载 TS 代码后没有任何变化

标签: ckeditor typo3 typo3-8.x tx-news


【解决方案1】:

我正在使用以下配置,即使在新闻中也能正常工作:

FullAndImage.yaml

# Load default processing options  
imports:
    # Import default RTE config (for example)
    - { resource: "EXT:rte_ckeditor/Configuration/RTE/Full.yaml" }
    # Import the image plugin configuration
    - { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" }

# Add configuration for the editor
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
editor:
  config:
    removePlugins: null
  externalPlugins:
      typo3image:
        allowedExtensions: "gif,jpg,jpeg,png,svg"

在 ext_localconf.php 中:

$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'] = 'EXT:my_extension/Configuration/RTE/FullAndImage.yaml';

我从未专门为news 配置CKEditor。

编辑:
还有一个提示:如果您升级了 TYPO3 并且仍然有旧编辑器的 PageTS rte_htmlarea 那么最好删除旧配置。它能够在新编辑器rte_ckeditor 中搞砸一些事情。我不知道是否有人验证了哪些旧参数在新编辑器中令人不安或有哪些影响,因此删除旧配置是最简单的解决方案。

【讨论】:

  • 我从旧条目和配置中清除了 PageTS:RTE.default.preset = full,更改了 ext_localconf.php 中条目的位置(在 $ boot = function () 上方)并且插件正常工作
猜你喜欢
  • 2018-06-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多