neosrulez/neos-ckeditor-customstyles

该包最新版本(2.0.4)没有可用的许可信息。

Neos CK Editor的自定义样式。

安装次数: 6,783

依赖: 0

建议: 0

安全: 0

星标: 2

关注者: 2

分支: 0

开放问题: 0

语言:JavaScript

类型:neos-plugin

2.0.4 2024-08-12 14:02 UTC

This package is not auto-updated.

Last update: 2024-09-23 14:32:25 UTC


README

A Neos CMS plugin that allows you to apply your own stylesheets to text.

安装

只需运行

composer require neosrulez/neos-ckeditor-customstyles

配置

NeosRulez:
  Neos:
    CkEditor:
      CustomStyles:
        presets:
          fontAwesomeIcon:
            label: Font Awesome
            dataSourceIdentifier: neosrulez-bootstrap-fa
          textColor:
            label: Text color
            options:
              primary:
                label: Primary
                cssClasses: 'text-primary'
                preview: '/_Resources/Static/Packages/Acme.Package/primary-color.png'
              secondary:
                label: Secondary
                cssClasses: 'text-primary'
                backgroundColor: '#0a58ca'
                textColor: '#FFFFFF'
              success:
                label: Success
                cssClasses: 'text-success'

使用方法

'Neos.NodeTypes:Text':
  properties:
    text:
      ui:
        inline:
          editorOptions:
            customStyles:
              fontAwesomeIcon: true
              textColor: true

作者