Skip to content

Commit 6088b27

Browse files
committed
switch out aceeditor widget
1 parent 4102acb commit 6088b27

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"2amigos/yii2-ckeditor-widget": "^2.0.2",
2121
"beowulfenator/yii2-json-editor": "^1.1.2",
2222
"bedezign/yii2-audit": "^1.0",
23-
"trntv/yii2-aceeditor": "^2.0.2",
23+
"eluhr/yii2-aceeditor": "^0.0.1",
2424
"dmstr/yii2-bootstrap": "~0.2"
2525
},
2626
"conflict": {

src/traits/ActiveRecordDbConnectionTrait.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/views/less/_form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040

4141
<?= $form->field($model, 'key')->textInput(['maxlength' => true]) ?>
4242
<?= $form->field($model, 'value')
43-
->widget(\trntv\aceeditor\AceEditor::className(),
44-
['mode' => 'less', 'containerOptions' => ['style' => 'height: 50vh']]) ?>
43+
->widget(\eluhr\aceeditor\widgets\AceEditor::class,
44+
['mode' => 'less', 'container_options' => ['style' => 'height: 50vh']]) ?>
4545
</p>
4646
<?php $this->endBlock(); ?>
4747

@@ -76,7 +76,7 @@
7676
<?php if (!$model->isNewRecord): ?>
7777
<?= Html::submitButton(
7878
'<span class="glyphicon glyphicon-saved"></span> '.
79-
($model->isNewRecord ? Yii::t('prototype', 'Apply') : Yii::t('prototype', 'Apply')),
79+
Yii::t('prototype', 'Apply'),
8080
[
8181
'id' => 'apply-'.$model->formName(),
8282
'name' => 'subaction',

src/views/twig/_form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
<p>
3939

4040
<?= $form->field($model, 'key')->textInput(['maxlength' => true]) ?>
41-
<?= $form->field($model, 'value')->widget(\trntv\aceeditor\AceEditor::className(),
42-
['containerOptions' => ['style' => 'height: 500px;']]) ?>
41+
<?= $form->field($model, 'value')->widget(\eluhr\aceeditor\widgets\AceEditor::class,
42+
['mode' => 'twig', 'container_options' => ['style' => 'height: 50vh']]) ?>
4343
</p>
4444
<?php $this->endBlock(); ?>
4545

0 commit comments

Comments
 (0)