yii2-tinymce-widget Renders a TinyMCE WYSIWYG text editor plugin widget

  1. Installation
  2. Usage
  3. Further Information
  4. Resources

Installation ¶

The preferred way to install this extension is through composer.

Either run php composer.phar require "2amigos/yii2-tinymce-widget" "*" or add "2amigos/yii2-tinymce-widget" : "*"

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

Usage ¶

The usage is pretty simple and doesn't differ much from other similar widgets:

use dosamigos\tinymce\TinyMce;

<?= $form->field($model, 'text')->widget(TinyMce::className(), [
    'options' => ['rows' => 6],
    'language' => 'es',
    '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"
    ]
]);?>

Further Information ¶

Please, check the TinyMCE plugin site documentation for further information about its configuration options

Resources ¶

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

0 0
5 followers
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: Antonio Ramirez Antonio Ramirez
Created on: Mar 15, 2015
Last updated: 10 years ago

Related Extensions