0
我使用Yii2主編箱,擴展從:https://github.com/yiidoc/yii2-redactorYii2變化主編箱尺寸
我想改變文本區域的大小,但我不知道怎麼回事,何嘗不是他們的文件中提及。我試圖編輯他們的CSS,但它沒有奏效。
請幫我這個。謝謝
我使用Yii2主編箱,擴展從:https://github.com/yiidoc/yii2-redactorYii2變化主編箱尺寸
我想改變文本區域的大小,但我不知道怎麼回事,何嘗不是他們的文件中提及。我試圖編輯他們的CSS,但它沒有奏效。
請幫我這個。謝謝
這裏是你可以控制文本區域的高度方式:
echo $form->field($curriculum,'text')->widget(Widget::className(),[
'settings' => [
'lang' => 'en',
'minHeight' => 500,
'plugins' => [
'fullscreen', 'fontfamily','fontcolor','fontsize','imagemanager',
],
'buttons' => [
'formatting', '|', 'bold', 'italic', 'deleted', '|',
'unorderedlist', 'orderedlist', 'outdent', 'indent', '|',
'image', 'table', 'link', '|',
'alignment', '|', 'horizontalrule',
'|', 'underline', '|', 'alignleft', 'aligncenter', 'alignright', 'justify'
],
'imageUpload'=>\Yii::$app->urlManager->createUrl('program/uploadcurriculumart'),
'clipboardUpload'=>true,
'clipboardUploadUrl'=>\Yii::$app->urlManager->createUrl('program/uploadcurriculumart'),
'imageManagerJson'=>\Yii::$app->urlManager->createUrl('program/getallcurriculumart')
]
],['style' => 'height:500px;'])->label(false);
通知兩個參數:和了minHeight我也設置樣式爲控制具有500像素的高度;完美的作品。
非常感謝你:) –
Redactor是靈活性,它意味着你只需要設置它的父母本身。 –