<?php echo $form->field($model, 'status')->dropDownList(\backend\models\Article::getArrayStatus()); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'intro')->textarea(['rows' => 6]); ?> <?php //外部TAG echo Html::tag('script', $model->content, ['id' => Html::getInputId($model, 'content'), 'name' => Html::getInputName($model, 'content'), 'type' => 'text/plain']); echo Ueditor::widget(['model' => $model, 'attribute' => 'content', 'renderTag' => false, 'jsOptions' => ['serverUrl' => yii\helpers\Url::to(['upload']), 'autoHeightEnable' => true, 'autoFloatEnable' => true]]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? '创建' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>