viadroid/ckeditor5 问题修复 & 功能扩展

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

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

viadroid/ckeditor5

最新稳定版本:0.0.3

Composer 安装命令:

composer require viadroid/ckeditor5

包简介

CKEditor 5 integration with Laravel

README 文档

README

Installation

  • Add dependency
composer require viadroid/ckeditor5
  • Publish static resources
php artisan vendor:publish --tag=viadroid-ckeditor5

Config

'extensions' => [
    'ckeditor' => [
        'enable' => true,
        'config' => [
            "language" => 'zh-cn',
            "height" => 200,
            "simpleUpload" => [
                "uploadUrl" => '/api/fileUpload/image'
            ],
            "fontSize" => [
                "options" => [
                    9,
                    11,
                    13,
                    'default',
                    17,
                    19,
                    21
                ]
            ],
            "toolbar" => [
                    "items" => [
                        'undo',
                        'redo',
                        'heading',
                        'bold',
                        'italic',
                        'underline',
                        'highlight',
                        'alignment',
                        'bulletedList',
                        'numberedList',
                        'todoList',
                        'outdent',
                        'indent',
                        '|',
                        'insertTable',
                        'link',
                        'imageInsert',
                        'mediaEmbed',
                        'blockQuote',
                        'codeBlock',
                        '|',
                        'fontFamily',
                        'fontSize',
                        'fontColor',
                        'fontBackgroundColor',
                        'specialCharacters',
                        '|',
                        'code',
                        'horizontalLine',
                        'htmlEmbed',
                        'showBlocks',
                        'findAndReplace',
                        'sourceEditing'
                    ]
                ],
            'image' => [
                'toolbar' => ['imageTextAlternative', '|', 'imageStyle:alignLeft', 'imageStyle:full', 'imageStyle:alignRight'],
                'resizeUnit' => 'px',
                'styles' => [
                    // This option is equal to a situation where no style is applied.
                    'full',
                    'side',
                    // This represents an image aligned to the left.
                    'alignLeft',
                    'alignCenter',
                    // This represents an image aligned to the right.
                    'alignRight'
                ]
            ],
            "table" => [
                'contentToolbar' => [
                    'tableColumn',
                    'tableRow',
                    'mergeTableCells',
                    'tableCellProperties',
                    'tableProperties'
                ]
            ],
        ],
    ],
]

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-21