承接 bellevue7k/span-classes 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bellevue7k/span-classes

Composer 安装命令:

composer require bellevue7k/span-classes

包简介

A custom button for Bard to allow a span with a class to be added to selected text.

README 文档

README

Statamic 3.0+

This is an example Bard addon for Statamic 3 that adds a span with a class to selected content.

Installation

Install it via the composer command

composer require bellevue7k/span-classes

In your Bard editor instances (note, not the configuration view), you'll see the new button added.

Select some text, click the new icon, and select a class type, and voilà!

Output

When output, the markup will be a span with a class attached.

<p>This is my text with <span class="whiteSpace-noWrap">whiteSpace-noWrap</span> highlighted using the addon.</p>

Use on the front end

You will need to add classes to your front end stylesheets to see them come through there too.

A finished class might be whiteSpace-noWrap for example.

Your CSS for your frontend can then target that specific class.

.whiteSpace-noWrap {
    hyphens:none;
        
    /* more class types */
}

License

This addon is licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固