Example #1
0
echo $form->field($model, 'digest')->textInput(['maxlength' => 256]);
?>

    <!--
    <iframe align=middle marginwidth=0 marginheight=0 src="./wosotech-edit/index.html" frameborder=no scrolling=yes width=960 height=600></iframe>
    -->

    <?php 
echo $form->field($model, 'content')->widget(Widget::className(), ['settings' => ['lang' => 'zh_cn', 'minHeight' => 200, 'maxHeight' => 400, 'buttonSource' => true, 'convertDivs' => false, 'removeEmptyTags' => false, 'plugins' => ['clips', 'fullscreen', 'fontcolor', 'fontfamily', 'fontsize', 'limiter', 'table', 'textexpander', 'textdirection', 'video', 'definedlinks', 'filemanager', 'imagemanager'], 'imageManagerJson' => Url::to(['/article/imagesget']), 'imageUpload' => Url::to(['/article/imageupload'])]]);
?>

    <?php 
echo $form->field($model, 'content_source_url')->textInput(['maxlength' => 256]);
?>

    <?php 
echo $form->field($model, 'show_cover_pic')->dropDownList(MGh::getNoYesOptionName());
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>