https://github.com/masihfathi/yii2-ckeditor
https://github.com/masihfathi/yii2-ckeditor
ckeditor yii2
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/masihfathi/yii2-ckeditor
- Owner: masihfathi
- Created: 2017-10-02T12:41:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T15:35:51.000Z (almost 9 years ago)
- Last Synced: 2025-06-03T15:11:01.703Z (about 1 year ago)
- Topics: ckeditor, yii2
- Language: HTML
- Size: 1.36 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ckeditor
========
yii2 ckeditor
Installation
------------
update ckeditor of MihailDev/yii2-ckeditor package and add bidi plugin
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require masihfathi/yii2-ckeditor "1.4"
```
or add
```
"masihfathi/yii2-ckeditor": "1.4"
```
to the require section of your `composer.json` file.
Usage
-----
Once the extension is installed, simply use it in your code by :
```php
use mihaildev\ckeditor\CKEditor;
use yii\helpers\Html;
CKEditor::widget([
'editorOptions' => [
'preset' => 'full', //basic, standard, full
'inline' => false, //false
]
]);
//ActiveForm
echo $form->field($post, 'content')->widget(CKEditor::className(),[
'editorOptions' => [
'preset' => 'full', //basic, standard, full
'inline' => false, //false
],
]);
```