k4/k4redactorremoveformat

此包已被废弃,不再维护。未建议替代包。

Craft Redactor Remove Format 是 Craft CMS 3 的插件。它可以从 redactor 中选定的文本中删除所有格式。

dev-master 2017-03-23 08:38 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:06:11 UTC


README

Craft Redactor remove format 是 Craft CMS 3 的插件。它可以从 redactor 中选定的文本中删除所有格式。

Screenshot

安装

要安装 k4 Redactor remove format,请按照以下步骤操作

  1. 下载并解压文件,将 k4redactorremoveformat 目录放置到您的 craft/plugins 目录下
  2. - 或者 - 直接在 craft/plugins 文件夹中执行 git clone https://github.com/https://bitbucket.org/kreisvierdigital/redactorremoveformatcraft3/k4-redactor-removeformat.git。然后您可以使用 git pull 更新它
  3. - 或者 - 使用 Composer 通过 composer require https://bitbucket.org/kreisvierdigital/redactorremoveformatcraft3/k4-redactor-removeformat 安装
  4. 在 Craft 控制面板的设置 > 插件下安装插件
  5. 插件文件夹应该命名为 k4redactorremoveformat,这样 Craft 才能识别它。GitHub 最近开始在文件夹名称中附加 -master(分支名称),以便于 zip 文件下载。

k4 Redactor remove format 适用于 Craft 3.x。

使用 k4 Redactor remove format

将 'removeformat' 添加到 Redactor 插件配置中的插件数组中:(http://buildwithcraft.com/docs/rich-text-fields#redactor-configs)

{
buttons: ['html','formatting','bold','italic','link','image'],
plugins: ['fullscreen', 'removeformat'],
formattingTags: ['p', 'blockquote', 'pre', 'h1', 'h2', 'h3', 'h4'],
observeLinks: true,
toolbarFixedBox: true
}

Stefan Friedrich 提供