aiddroid/yii2-tinymce

A Yii2 widget for TinyMce4.2.1 (Integrate with elfinder2.0 file manager)

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

1.0 2015-07-03 06:40 UTC

This package is auto-updated.

Last update: 2024-11-13 16:13:50 UTC


README

A Yii2 widget for TinyMce4.2.1 (Integrate with elfinder2.0 file manager)

requirements

usage in views

    echo $form->field($model, 'body')->widget(
        \aiddroid\yii2tinymce\Widget::className(),
        [
            'options' => [
                'language' => 'zh_CN',
                'selector' => 'textarea',
                'height' => 500,
                'menubar' => false,
                'plugins' => [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table contextmenu paste imagetools elfinder"
                ],
                'toolbar' => "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image preview",
            ]
        ]
    )

screenshot

image