1 | <?php |
||
21 | class TinyMce extends InputWidget |
||
22 | { |
||
23 | /** |
||
24 | * @var string the language to use. Defaults to null (en). |
||
25 | */ |
||
26 | public $language; |
||
27 | /** |
||
28 | * @var array the options for the TinyMCE JS plugin. |
||
29 | * Please refer to the TinyMCE JS plugin Web page for possible options. |
||
30 | * @see http://www.tinymce.com/wiki.php/Configuration |
||
31 | */ |
||
32 | public $clientOptions = []; |
||
33 | /** |
||
34 | * @var bool whether to set the on change event for the editor. This is required to be able to validate data. |
||
35 | * @see https://github.com/2amigos/yii2-tinymce-widget/issues/7 |
||
36 | */ |
||
37 | public $triggerSaveOnBeforeValidateForm = true; |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | 3 | public function init() |
|
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | 3 | public function run() |
|
64 | 3 | ||
65 | /** |
||
66 | * Registers tinyMCE js plugin |
||
67 | */ |
||
68 | protected function registerClientScript() |
||
95 | } |
||
96 |