kitzberger/rte-ckeditor-dl

TYPO3 CKEditor 富文本编辑器:定义列表

安装次数: 51,403

依赖项: 0

建议者: 0

安全性: 0

星标: 2

关注者: 3

分支: 3

开放问题: 2

语言:JavaScript

类型:typo3-cms-extension

1.0.7 2022-05-03 07:43 UTC

This package is auto-updated.

Last update: 2024-08-30 01:12:19 UTC


README

这是一个简单的包装扩展,用于将Reinmar的ckeditor-plugin-descriptionlist集成到TYPO3默认编辑器ckeditor中。

安装

  • composer require kitzberger/rte-ckeditor-dl
  • 通过后端扩展管理器安装扩展

加载PageTS

简单地将此扩展提供的RTE配置default+dl通过PageTS加载到页面树的根页面。这将在此页面树中的所有RTE中将此插件增强的默认RTE配置设置为默认配置。

自定义RTE配置

除了启用default+dl配置外,您还可以创建自己的RTE配置,并简单地将以下描述的yaml文件导入。

EXT:custom/ext_localconf.php

$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['custom'] = 'EXT:custom/Configuration/RTE/Default.yaml';

EXT:custom/Configuration/RTE/Default.yaml

# Load default processing options + the dl plugin
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" }
  - { resource: "EXT:rte_ckeditor_dl/Configuration/RTE/Plugin.yaml" }

故障排除

这里会出现奇怪的<p>标签吗?

<dl>
	<dt>Foo</dt>
	<dd>
		<p class="bodytext">Bar</p>
	</dd>
	<dt>Fuu</dt>
	<dd>
		<p class="bodytext">Bat</p>
	</dd>
	<p class="bodytext">&nbsp;</p>
</dl>

稍微调整TYPO3的pareFunc_RTE以解决这个问题

lib.parseFunc_RTE.externalBlocks.dl.callRecursive >
lib.parseFunc_RTE.externalBlocks.dl.stdWrap.parseFunc =< lib.parseFunc