1 | <?php |
||
21 | class CKEditorInline extends Widget |
||
22 | { |
||
23 | use CKEditorTrait; |
||
24 | |||
25 | /** |
||
26 | * @var array the HTML attributes for the input tag. |
||
27 | * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
||
28 | */ |
||
29 | public $options = []; |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | public $tag = 'div'; |
||
34 | /** |
||
35 | * @var bool disables creating the inline editor automatically for elements with contenteditable attribute |
||
36 | * set to the true. Defaults to true. |
||
37 | */ |
||
38 | public $disableAutoInline = true; |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | 1 | public function init() |
|
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | 1 | public function run() |
|
66 | |||
67 | /** |
||
68 | * Registers CKEditor plugin |
||
69 | * @codeCoverageIgnore |
||
70 | */ |
||
71 | protected function registerPlugin() |
||
96 | } |
||
97 |