panix / wgt-tinymce
Widget Tinymce
Installs: 275
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:pixelion-component
Requires
- panix/engine: *
- tinymce/tinymce: ^4.9.0
This package is auto-updated.
Last update: 2024-11-08 16:01:31 UTC
README
Widget for Yii Framework 2.0 to use TinyMce
Installation
The preferred way to install this extension is through composer.
Either run
php composer require --prefer-dist panix/wgt-tinymce "*"
or add
"panix/wgt-tinymce": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php $form->field($model, 'text')->widget(TinyMce::className(), [ 'options' => ['rows' => 6], 'clientOptions' => [ 'plugins' => [ "advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" ] ]); ?>