Closed logofakt closed 7 years ago
You forgot to echo de field ;)
<?=
$form->field($model, 'content')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'full'
]);
?>
or
<?php
echo $form->field($model, 'content')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'full'
]);
?>
Thanks a lot ... such a stupidity!
shit happens 👍 @logofakt
In my project with advanced template CKEditor widget does not render. composer.json looks as shown below:
And this is the form: <?php
use yii\helpers\Html; use yii\helpers\ArrayHelper; use kartik\form\ActiveForm; use kartik\widgets\DateTimePicker; use kartik\checkbox\CheckboxX; use rmrevin\yii\fontawesome\FA; use dosamigos\ckeditor\CKEditor;
/ @var $this yii\web\View / / @var $model common\models\Block / / @var $form yii\widgets\ActiveForm / ?>
= $form->field($model, 'publish_stop')->widget(DateTimePicker::classname(), [ 'options' => ['placeholder' => yii::t('app', 'Erscheinungsdatum bis ...')], 'language' => 'de', 'pluginOptions' => [ 'autoclose'=>true, 'format' => 'yyyy-mm-dd hh:mm', 'todayHighlight' => true, 'todayBtn' => true, ] ]); ?>
= $form->field($model, 'button_link')->textInput() ?> = $form->field($model, 'button_target')->dropDownList( Yii::$app->lookup->items('target'))?> = $form->field($model, 'button_text')->textInput(['maxlength' => true]) ?>
Changing preset doesn't help. So is it because of dependencies e.g. Kartik widgets? Do I have a wrong version? Can't really figure it out and would appreciate any help as I need CKEditor in this project.