Class yeesoft\media\widgets\TinyMce

Inheritanceyeesoft\media\widgets\TinyMce » yii\widgets\InputWidget

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$callbackBeforeInsert string JavaScript function, which will be called before insert file data to input. yeesoft\media\widgets\TinyMce
$clientOptions array The options for the TinyMCE JS plugin. yeesoft\media\widgets\TinyMce
$thumb string Optional, if set, only this image can be selected by user yeesoft\media\widgets\TinyMce

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() yeesoft\media\widgets\TinyMce
run() Runs the widget. yeesoft\media\widgets\TinyMce

Property Details

$callbackBeforeInsert public property

JavaScript function, which will be called before insert file data to input. Argument data contains file data. data example: [alt: "Witch with cat", description: "123", url: "/uploads/2014/12/vedma-100x100.jpeg", id: "45"]

$clientOptions public property

The options for the TinyMCE JS plugin. Please refer to the TinyMCE JS plugin Web page for possible options.

See also http://www.tinymce.com/wiki.php/Configuration.

public array $clientOptions = ['menubar' => false'height' => 300'image_dimensions' => true'plugins' => ['advlist autolink lists link image charmap print preview anchor searchreplace visualblocks code contextmenu table wordcount pagebreak'], 'toolbar' => 'undo redo | styleselect bold italic | alignleft aligncenter alignright alignjustify bullist numlist outdent indent | pagebreak link image table | code']
$thumb public property

Optional, if set, only this image can be selected by user

public string $thumb ''

Method Details

init() public method

public void init ( )
run() public method

Runs the widget.

public void run ( )