定制 codelight-eu/acf-simple-wysiwyg 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

codelight-eu/acf-simple-wysiwyg

Composer 安装命令:

composer require codelight-eu/acf-simple-wysiwyg

包简介

WordPress plugin which creates a new ACF Wysiwyg field type with very limited controls.

README 文档

README

WordPress plugin that creates a new ACF Wysiwyg field type with very limited controls - bold, italic, link and colors. Perfect for headings.

How it looks like

Screenshot 1

Why?

Sometimes you need a page heading with a fixed h1 tag, but with some styling - for example, a word that's bold or underlined or even a link. This field type allows doing that, but doesn't add paragraph tags and removes all unnecessary controls so your clients won't accidentally screw up the layout.

Shortcodes will still work, though.

Installation

composer require codelight-eu/acf-simple-wysiwyg

Where can I find the new field type

Screenshot 1

Can I change the tinyMCE controls?

Sure. Use the following filter: acf/fields/simple-wysiwyg/toolbars Looks like this in the code:

<?php
$toolbars = apply_filters('acf/fields/simple-wysiwyg/toolbars', [
    'Full' => [
        1 => apply_filters('mce_buttons', [
            'bold',
            'italic',
            'underline',
            'link',
            'unlink',
            'forecolor',
            'forecolorpicker',
            'pastetext',
            'removeformat',
        ], 'acf_content'),
    ]
]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-09-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固