</div><!-- /.box-header --> <div class="box-body"> <?php $form = ActiveForm::begin(['id' => 'login-form']); ?> <?php echo $form->field($model, 'logtype_id', ['labelOptions' => ['label' => '选择日志类型']])->dropDownList(LogTypeService::findLogTypelists()); ?> <?php echo $form->field($model, 'call_methods', ['labelOptions' => ['label' => '调用的函数']]); ?> <?php echo $form->field($model, 'call_parameter', ['labelOptions' => ['label' => '调用的参数']]); ?> <?php echo \kucha\ueditor\UEditor::widget(['model' => $model, 'attribute' => 'errormsg', 'clientOptions' => ['initialFrameHeight' => '200', 'lang' => 'zh-cn', 'toolbars' => [['fullscreen', 'source', 'undo', 'redo', '|', 'fontsize', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', '|', 'lineheight', '|', 'indent', '|', 'simpleupload', 'insertimage', '|']]]]); ?> <div class="text-center"> <?php echo Html::submitButton('确认提交', ['class' => 'btn btn-primary', 'name' => 'login-button']); ?> </div> <?php ActiveForm::end(); ?> </div><!-- /.box --> </div><!-- /.col --> </div> </div> </section><!-- /.content --> </div>
<?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'cover')->fileInput(); ?> <?php echo $form->field($model, 'summary')->textarea(['rows' => 6]); ?> <div class="form-group field-article-content"> <div class="col-sm-12"> <?php echo \kucha\ueditor\UEditor::widget(array('model' => $model, 'attribute' => 'body')); ?> <div class="help-block"></div> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-3"> <?php echo Html::submitButton('保 存', ['class' => 'btn btn-primary btn-block']); ?> </div> </div> <?php ActiveForm::end();
<div style="width:100%;height:800px;"> <?php $this->params = ['breadcrumb' => [['name' => 'hello', 'url' => '#', 'current' => 1]]]; use kucha\ueditor\UEditor; echo UEditor::widget(['name' => 'content', 'clientOptions' => ['initialFrameHeight' => '200', 'lang' => 'en', 'toolbars' => [['fullscreen', 'source', 'undo', 'redo', '|', 'fontsize', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', '|', 'lineheight', '|', 'indent', '|', 'insertimage', '|']]]]); ?> </div>
<?php echo \kucha\ueditor\UEditor::widget(['name' => 'content']);