2017 © Pedro Peláez
 

yii2-extension yii2-ckeditor

CKEditor extension for Yii2.

image

skeeks/yii2-ckeditor

CKEditor extension for Yii2.

  • Monday, May 28, 2018
  • by skeeks-semenov
  • Repository
  • 2 Watchers
  • 3 Stars
  • 11,959 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 12 Versions
  • 7 % Grown

The README.md

CKEditor Widget for Yii2

Renders a CKEditor WYSIWYG text editor plugin widget., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require "skeeks/yii2-ckeditor" "*"

or add, (*4)

"skeeks/yii2-ckeditor" : "*"

to the require section of your application's composer.json file., (*5)

Skins & Plugins

This widget works with default's dev-full/stable branch of CKEditor, with a set of plugins and skins. If you wish to configure a different skins or plugins that the one proposed, you will have to download them separately and configure the widget's clientOptions attribute accordingly., (*6)

Usage

The library comes with two widgets: CKEditor and CKEditorInline. One is for classic edition and the other for inline editing respectively., (*7)

Using a model with a basic preset:, (*8)


use skeeks\yii2\ckeditor\CKEditorWidget; use skeeks\yii2\ckeditor\CKEditorPresets; = $form->field($model, 'text')->widget(CKEditorWidget::className(), [ 'preset' => CKEditorPresets::BASIC ]) ?>
<?= $form->field($model, 'text')->widget(CKEditorWidget::className(), [
    'options' => ['rows' => 6],
    'preset' => CKEditorPresets::FULL
]) ?>
<?= $form->field($model, 'description_short')->widget(
    \skeeks\cms\widgets\formInputs\ckeditor\Ckeditor::className(),
    [
        'preset' => \skeeks\yii2\ckeditor\CKEditorPresets::CLEAN,
        'clientOptions' =>
        [
            'height' => 200,
            'extraPlugins'      => 'ckwebspeech,sourcedialog,codemirror,ajax,codesnippet,xml,widget,lineutils,dialog,dialogui',
            'toolbarGroups' => [
                ['name' => 'undo'],
                ['name' => 'basicstyles', 'groups' => ['basicstyles', 'cleanup']],
                ['name' => 'colors'],
                ['name' => 'links', 'groups' => ['links']],
                ['name' => 'others','groups' => ['others', 'about']],
            ],
            'removeButtons' => 'Subscript,Superscript,Flash,Table,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe',
            'removePlugins' => 'elementspath',
            'resize_enabled' => true
        ]
    ]
); ?>

Further Information

Please, check the CKEditor plugin site documentation for further information about its configuration options., (*9)


skeeks!
SkeekS CMS (Yii2) — fast, simple, effective!
skeeks.com | cms.skeeks.com, (*10)

The Versions

28/05 2018

dev-master

9999999-dev

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

28/05 2018

1.1.3

1.1.3.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

28/05 2018

1.1.2

1.1.2.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

28/05 2018

1.1.1

1.1.1.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

18/12 2016

1.1.0

1.1.0.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

07/11 2015

1.0.4

1.0.4.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

10/07 2015

1.0.3

1.0.3.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

10/07 2015

dev-master-geshi

dev-master-geshi

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

30/06 2015

1.0.2

1.0.2.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

30/06 2015

1.0.1

1.0.1.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

30/06 2015

1.0.0

1.0.0.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor

30/06 2015

0.0.1

0.0.1.0

CKEditor extension for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

extension yii2 ckeditor