codemonauts/craft-redactor-nofollow 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codemonauts/craft-redactor-nofollow

Composer 安装命令:

composer require codemonauts/craft-redactor-nofollow

包简介

Craft CMS plugin to extends the Redactor's link module with the nofollow relationship attribute.

README 文档

README

Icon

Plugin to add a checkbox to Redactor's link module to add the rel="nofollow" attribute to a link.

Background

For a lot of sites it is important to set links to rel="nofollow". Redactor provides an option to set alllinks to nofollow. However, this is often not required and also not the usual practice in SEO. With this plugin it is possible to enable this attribute for every single link individual within the link's edit modal.

Requirements

  • Craft CMS >= 4.0.0
  • Craft Redactor Plugin >= 3.0.0

Installation

Open your terminal and go to your Craft project:

cd /path/to/project
composer require codemonauts/craft-redactor-nofollow
./craft plugin/install nofollow

You can also install the plugin via the Plugin Store in the Craft Control Panel.

Configuration

Add the new plugin to your Redactor config file:

{
  "plugins": [
    "nofollow"
  ]
}

You can configure whether the checkbox in the link dialog should be checked by default when adding a new link. Just add the following config to your Redactor config file:

{
  "linkDefaultNoFollow": true
}

The nofollow will be stripped in all Redactor fields by the HTMLPurifier, which is enabled by default. Instead of disabling the hole HTMLPurifier for a field, you should add the following line to the config/htmlpurifier/Default.json:

{
  "Attr.AllowedRel": [
    "nofollow"
  ]
}

With ❤ by codemonauts

统计信息

  • 总下载量: 31.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固