maybeworks/yii2-tinymce

This package is abandoned and no longer maintained. No replacement package was suggested.

TinyMCE widget for Yii PHP framework 2.0

Installs: 571

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2015-06-17 18:02 UTC

This package is not auto-updated.

Last update: 2023-01-30 10:22:57 UTC


README

TinyMCE WYSIWYG text editor plugin widget for Yii PHP framework 2.0

Features:

  • TinyMCE always the latest version, because loaded from the bower-asset/tinymce
  • Automatically download the language file based on the current localization settings Yii
  • Simple addition of their plug-ins and skins
  • Correct client validation
  • Other facilities

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "maybeworks/yii2-tinymce" "*"

or add

"maybeworks/yii2-tinymce" : "*"

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

Usage

Basic usage

use maybeworks\tinymce\TinyMceWidget;

<?= $form->field($model, 'text')->widget(TinyMceWidget::className());?>

Editor config

use maybeworks\tinymce\TinyMceWidget;

<?= $form->field($model, 'text')->widget(
    TinyMceWidget::className(),
    clientOptions' => [
        'plugins' => [
            "code fullscreen",
            "media table contextmenu paste"
        ],
        'toolbar' => "undo redo | styleselect | bold italic | link image"
    ]
    );?>

Information

Documentation: TinyMCE plugin site

MaybeWorks
Nothing is impossible, limit exists only in the minds of...
maybe.works