Closed dmitri-s closed 7 years ago
Do you mind testing against the 'master' branch? Maybe I missed to tag version.
I am not composer guru. Been using Yii2 and composer for last few month. So, if I am doing something wrong - feel free to point it out. I will be happy to re-test.
Here is what I did:
<?= $form->field($model, 'text')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'full',
])?>
Full shows up correctly:
<?= $form->field($model, 'rts_dist_assigment')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'standard',
])?>
Standard shows up correctly:
<?= $form->field($model, 'rts_dist_assigment')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'basic',
])?>
Basic shows up correctly:
So option preset working as expected.
On the other hand 'options' => ['rows' => 6],
still does not have any effect on the widget. Selecting 1, 6, 10, or 600 will result in the same window size. Will not bore you with screenshots.
Hope this helps, Code @( ' _ ' )@
@dmitri-s thanks for such great feedback. About the rows, I believe that you need to use the "height" attribute in clientOptions
to change the size of the editor. Remember we are using the underline plugin, modifying the textarea attributes have no effect.
I like full of preset
@Azam2926 have you tried this?
<?= $form->field($model, 'attributeName')->widget(CKEditor::className(), [
'preset' => 'full', // <---- HERE
])?>
After running a composer update the plugin no longer allow you to set preset to full.
'preset' => 'full',
Setting it to full, standard or basic has no effect.Also tried setting options->rows to 1,5,6,10,15,20 and had no effect on end form.
'options' => ['rows' => 6],
Please advice.