jeroennoten/laravel-ckeditor 问题修复 & 功能扩展

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

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

jeroennoten/laravel-ckeditor

最新稳定版本:v3.8.1

Composer 安装命令:

composer require jeroennoten/laravel-ckeditor

包简介

Laravel CKEditor

README 文档

README

Build Status

This package provides an easy way to set up CKEditor with Laravel 5. I think CKEditor is the best free WYSIWYG editors available. This package makes it super easy to use the editor with Laravel 5. It provides a custom blade directive @ckeditor('textareaId') to quickly integrate it in your forms.

Installation

  1. Require the package using composer:

    composer require jeroennoten/laravel-ckeditor
    
  2. Add the service provider to the providers in config/app.php:

    JeroenNoten\LaravelCkEditor\ServiceProvider::class,
  3. Publish the public assets:

    php artisan vendor:publish --tag=ckeditor-assets
    

Updating

  1. To update this package, first update the composer package:

    composer update jeroennoten/laravel-ckeditor
    
  2. Then, publish the public assets with the --force flag to overwrite existing files

    php artisan vendor:publish --tag=ckeditor-assets --force
    

Usage

The package provides a custom blade directive @ckeditor('textareaId') that transforms a <textarea> into a CkEditor instance. Give your <textarea> an id attribute and add the blade directive at the bottom of your page, with the identifier of the <textarea>.

Example:

<textarea id="bodyField"></textarea>

@ckeditor('bodyField')

Configuration

If you need to configure the CkEditor instance, you can do that by passing a second argument with all options into the blade directive. Refer to the CkEditor config documentation to discover all possible options.

Example:

<textarea id="bodyField"></textarea>

@ckeditor('bodyField', ['height' => 500])

统计信息

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

GitHub 信息

  • Stars: 55
  • Watchers: 2
  • Forks: 32
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-14