Skip to content

lubobill1990/Yii2-simditor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require  lubobill1990/yii2-simditor "*"

or add

"lubobill1990/yii2-simditor": "*"

to the require section of your composer.json file.

Usage

Like a widget

echo \lubobill1990\yii2\widget\Simditor::widget([
    'clientOptions'=>[
        'toolbarHidden' => false,
        'toolbar' => [//default true
            'title',
            'bold',
            'italic',
            'underline',
            'strikethrough',
            'fontScale'
        ]
    ]
]);

Like an ActiveForm widget

use lubobill1990\yii2\widget\Simditor;
echo $form->field($model, 'content')->widget(Simditor::class,[
    'clientOptions'=>[
        'toolbarHidden'=>false,
        'toolbar'=>[//default true
            'title',
            'bold',
            'italic',
            'underline',
            'strikethrough',
            'fontScale'
        ]
    ]
]);

For other options, refer to this website http://simditor.tower.im/

Claim

This package is forked from anxu/yii2-simditor

About

editor for yii2 framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.9%
  • CSS 16.0%
  • CoffeeScript 11.7%
  • HTML 4.0%
  • PHP 3.1%
  • Ruby 0.3%