1 | <?php |
||
19 | trait CKEditorTrait |
||
20 | { |
||
21 | /** |
||
22 | * @var string the toolbar preset. It can be any of the following: |
||
23 | * |
||
24 | * - basic: will load the configuration on presets/basic.php |
||
25 | * - full: will load the configuration on presets/full.php |
||
26 | * - standard: will load the configuration on presets/standard.php |
||
27 | * - custom: configuration will be based on [[clientOptions]]. |
||
28 | * |
||
29 | * Defaults to 'standard'. It is important to note that any configuration item of the loaded presets can be |
||
30 | * overrided by [[clientOptions]] |
||
31 | */ |
||
32 | public $preset = 'standard'; |
||
33 | |||
34 | /** |
||
35 | * @var array the options for the CKEditor 4 JS plugin. |
||
36 | * Please refer to the CKEditor 4 plugin Web page for possible options. |
||
37 | * @see http://docs.ckeditor.com/#!/guide/dev_installation |
||
38 | */ |
||
39 | public $clientOptions = []; |
||
40 | |||
41 | /** |
||
42 | * Initializes the widget options. |
||
43 | * This method sets the default values for various options. |
||
44 | */ |
||
45 | 9 | protected function initOptions() |
|
65 | } |
||
66 |