sibds/yii2-ckeditor-widget

CKEditor widget for Yii2.

Installs: 292

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 112

Language:HTML

Type:yii2-extension

1.0.4 2015-04-30 12:22 UTC

This package is auto-updated.

Last update: 2024-11-03 08:16:18 UTC


README

Based on 2amigos/yii2-ckeditor-widget

Renders a CKEditor WYSIWYG text editor plugin widget.

Installation

The preferred way to install this extension is through composer.

Either run

composer require sibds/yii2-ckeditor-widget:~1.0

or add

"sibds/yii2-ckeditor-widget" : "~1.0"

to the require section of your application's composer.json file.

Skins & Plugins

Default: Office2013

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.

Plugins:

Usage

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

Using a model with a basic preset:


use dosamigos\ckeditor\CKEditor;


<?= $form->field($model, 'text')->widget(CKEditor::className(), [
        'options' => ['rows' => 6],
        'preset' => 'basic'
    ]) ?>

Using inline edition with basic preset:


use dosamigos\ckeditor\CKEditorInline;

<?php CKEditorInline::begin(['preset' => 'basic']);?>
    This text can be edited now :)
<?php CKEditorInline::end();?>

License

The BSD License (BSD). Please see License File for more information.

2amigOS!
Web development has never been so fun!
www.2amigos.us