itstructure/yii2-ckeditor CKEditor widget for Yii2 Framework

ckeditor

Yii2 CKEditor widget

Introduction

Latest Stable Version Latest Unstable Version License Total Downloads Build Status Scrutinizer Code Quality

This is a CKEditor widget for the Yii2 framework with CKEditor template.

Dependencies

  • php >= 7.1
  • composer

Installation

Via composer:

composer require itstructure/yii2-ckeditor ~1.1.6

or in section require of composer.json file set the following:

"require": {
    "itstructure/yii2-ckeditor": "~1.1.4"
}

and command composer install, if you install yii2 project extensions first,

or command composer update, if all yii2 project extensions are already installed.

Usage

Example of using in application with an active model and ckfinder:

echo $this->form->field($this->model, $this->getFieldName())
    ->widget(
        CKEditor::className(),
        [
            'preset' => 'custom',
            'clientOptions' => [
                'toolbarGroups' => [
                    [
                        'name' => 'undo'
                    ],
                    [
                        'name' => 'basicstyles',
                        'groups' => ['basicstyles', 'cleanup']
                    ],
                    [
                        'name' => 'colors'
                    ],
                    [
                        'name' => 'links',
                        'groups' => ['links', 'insert']
                    ],
                    [
                        'name' => 'others',
                        'groups' => ['others', 'about']
                    ],
                ],
                'filebrowserBrowseUrl' => '/ckfinder/ckfinder.html',
                'filebrowserImageBrowseUrl' => '/ckfinder/ckfinder.html?type=Images',
                'filebrowserUploadUrl' => '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
                'filebrowserImageUploadUrl' => '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
                'filebrowserWindowWidth' => '1000',
                'filebrowserWindowHeight' => '700',
                'allowedContent' => true,
                'language' => 'en',
            ]
        ]
    );

preset option can be:

  • basic
  • full
  • standard

License

Copyright © 2018-2023 Andrey Girnik girnikandrey@gmail.com.

Licensed under the MIT license. See LICENSE.txt for details.

Changelog

CHANGE LOG:

1.1.6 January 22, 2023:

  • Improve scrutinizer config.

1.1.5 January 3, 2023:

  • Upgrade copyright year.

1.1.4 February 23, 2021:

  • Upgrade copyright year.

1.1.3 June 23, 2020:

  • Modify README syntax.

1.1.2 August 9, 2018:

  • Simple code style fixes.

1.1.1 July 30, 2018:

  • Modify README for preset and configuration example.

1.1.0 May 12, 2018:

  • Modify dependencies: minimum-stability is set to dev.
  • Set prefer-stable is true
  • Add .scrutinizer file.
  • Add badges:
    • Latest Stable Version
    • Latest Unstable Version
    • License
    • Total Downloads.
    • Build Status
    • Scrutinizer Code Quality

1.0.1 March 17, 2018:

  • Modify README decor.

1.0.0 February 4, 2018:

  • Create CKEditor widget extension.
  • Create documentation.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1.6 is the latest of 9 releases



MIT license
Stats
3 github stars & 1 github forks
49 downloads in the last day
584 downloads in the last 30 days
9107 total downloads