本文整理汇总了PHP中mihaildev\ckeditor\CKEditor类的典型用法代码示例。如果您正苦于以下问题:PHP CKEditor类的具体用法?PHP CKEditor怎么用?PHP CKEditor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CKEditor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1:
// $form->field($model, 'informasi')->widget(TinyMce::className(), [
// 'options' => ['rows' => 15],
// 'clientOptions' => [
// 'content_style'=>'p {font-size:15px;}',
// 'plugins' => [
// "advlist autolink lists link charmap print preview anchor",
// "searchreplace visualblocks code fullscreen",
// "insertdatetime media table contextmenu paste"
// ],
// 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
// ]
// ]);
?>
<?php
echo $form->field($model, 'informasi')->widget(CKEditor::className(), ['editorOptions' => ElFinder::ckeditorOptions(['elfinder', 'path' => 'some/sub/path'], ['preset' => Yii::$app->devicedetect->isMobile() ? 'basic' : 'full', 'skin' => 'office2013'])]);
?>
<?php
echo $form->field($model, 'status')->dropDownList(DataKerja::status(), ['maxlength' => true]);
?>
<?php
//= $form->field($model, 'created_at')->textInput()
?>
<?php
//= $form->field($model, 'modified_at')->textInput()
?>
开发者ID:aldife,项目名称:yii2-work-schedule,代码行数:31,代码来源:_form.php
示例2:
?>
<?php
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'slug')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'image')->widget(InputFile::className(), ['language' => 'en', 'controller' => 'elfinder', 'path' => 'image', 'filter' => 'image', 'template' => '<div class="input-group">{input}<span class="input-group-btn">{button}</span></div>', 'options' => ['class' => 'form-control'], 'buttonOptions' => ['class' => 'btn btn-success'], 'multiple' => false]);
?>
<?php
echo $form->field($model, 'content')->widget(CKEditor::className(), ['editorOptions' => elFinder::ckeditorOptions(['elfinder'], ['preset' => 'standard', 'entities' => false])]);
?>
<?php
echo $form->field($model, 'meta_title')->textInput();
?>
<?php
echo $form->field($model, 'meta_keywords')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'meta_description')->textInput(['maxlength' => true]);
?>
<?php
开发者ID:nguyentuansieu,项目名称:OneCMS,代码行数:31,代码来源:_form.php
示例3:
/* @var $this yii\web\View */
/* @var $model app\modules\appointment\models\Locality */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="locality-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'contact')->widget(\mihaildev\ckeditor\CKEditor::className(), ['editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions('elfinder')]);
?>
<div class="form-group">
<?php
echo Html::submitButton('Сохранить', ['class' => 'btn btn-success']);
?>
</div>
<?php
ActiveForm::end();
?>
</div>
开发者ID:andreyvaslv,项目名称:crb,代码行数:30,代码来源:_form.php
示例4: implode
use kartik\select2\Select2;
/* @var $this yii\web\View */
/* @var $model yincart\item\models\Item */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="item-form">
<?php
$form = ActiveForm::begin();
$fieldGroups = [];
$fields = [];
$fields[] = $form->field($model, 'sku')->textInput(['maxlength' => 255]);
$fields[] = $form->field($model, 'name')->textInput(['maxlength' => 255]);
$fields[] = $form->field($model, 'description')->widget(CKEditor::className(), ['editorOptions' => ['filebrowserBrowseUrl' => Url::to(['elfinder/manager'])]]);
$fields[] = $form->field($model, 'short_description')->widget(CKEditor::className(), ['editorOptions' => ['filebrowserBrowseUrl' => Url::to(['elfinder/manager'])]]);
$fields[] = $form->field($model, 'meta_description')->textarea(['rows' => 6]);
$fields[] = $form->field($model, 'meta_keywords')->textInput(['maxlength' => 255]);
$fields[] = $form->field($model, 'sort')->textInput();
$fields[] = $form->field($model, 'status')->checkbox();
$fieldGroups[] = ['label' => 'Base Info', 'content' => implode('', $fields)];
$fields = [];
$fields[] = $form->field($model, 'original_price')->textInput(['maxlength' => 10]);
$fields[] = $form->field($model, 'price')->textInput(['maxlength' => 10]);
$fields[] = $form->field($model, 'stock_qty')->textInput();
$fields[] = $form->field($model, 'min_sale_qty')->textInput();
$fields[] = $form->field($model, 'max_sale_qty')->textInput();
$fields[] = $form->field($model, 'weight')->textInput(['maxlength' => 10]);
$fields[] = $form->field($model, 'shipping_fee')->textInput(['maxlength' => 10]);
$fields[] = $form->field($model, 'is_free_shipping')->checkbox();
$fieldGroups[] = ['label' => 'Price & Stock', 'content' => implode('', $fields)];
开发者ID:yinheark,项目名称:yincart2,代码行数:31,代码来源:_form.php
示例5:
<?php
if (isset($template->supported_tags) && trim($template->supported_tags) != '') {
?>
<p style="margin-top: -10px;" class="help-block"><?php
echo Yii::t('infoweb/email', 'Tags');
?>
: <?php
echo $template->supported_tags;
?>
</p>
<?php
}
?>
<?php
echo $form->field($model, "[{$model->language}]message")->widget(CKEditor::className(), ['name' => "TemplateLang[{$model->language}][message]", 'editorOptions' => ArrayHelper::merge(Yii::$app->getModule('cms')->getCKEditorOptions(), Yii::$app->getModule('email')->ckEditorOptions, LanguageHelper::isRtl($model->language) ? ['contentsLangDirection' => 'rtl'] : []), 'options' => ['data-duplicateable' => $allowContentDuplication ? 'true' : 'false']]);
?>
<?php
if (isset($template->supported_tags) && trim($template->supported_tags) != '') {
?>
<p style="margin-top: -10px;" class="help-block"><?php
echo Yii::t('infoweb/email', 'Tags');
?>
: <?php
echo $template->supported_tags;
?>
</p>
<?php
}
?>
</div>
开发者ID:infoweb-internet-solutions,项目名称:yii2-cms-email,代码行数:31,代码来源:_default_language_tab.php
示例6:
<?php
use mihaildev\ckeditor\CKEditor;
use yii\helpers\ArrayHelper;
?>
<div class="tab-content downloads-tab">
<?php
echo $form->field($model, 'downloads')->widget(CKEditor::className(), ['editorOptions' => ArrayHelper::merge(Yii::$app->getModule('cms')->getCKEditorOptions(), ['height' => 200])]);
?>
</div>
开发者ID:infoweb-internet-solutions,项目名称:yii2-skarabee,代码行数:10,代码来源:_downloads_tab.php
示例7: implode
<div class="item-form">
<?php
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
$fieldGroups = [];
$fields = [];
$fields[] = $form->field($model, 'title')->textInput(['maxlength' => 255]);
$fields[] = $form->field($model, 'price')->textInput(['maxlength' => 255]);
$currency = Currency::find()->all();
$fields[] = $form->field($model, 'currency')->dropDownList(ArrayHelper::map($currency, 'currency_id', 'name'));
$language = Language::find()->all();
$fields[] = $form->field($model, 'language')->dropDownList(ArrayHelper::map($language, 'language_id', 'name'));
$fieldGroups[] = ['label' => Yii::t('catalog', 'Base Info'), 'content' => implode('', $fields)];
$fields = [];
$fields[] = $form->field($model, 'desc')->widget(CKEditor::className(), ['editorOptions' => ['filebrowserBrowseUrl' => Url::to(['/elfinder/manager', 'filter' => 'image'])]]);
$fieldGroups[] = ['label' => Yii::t('catalog', 'Detailed Info'), 'content' => implode('', $fields)];
$fields = [];
$fields[] = $form->field($model, 'shipping_fee')->textInput(['maxlength' => 255]);
$fields[] = $form->field($model, 'is_show')->radioList(['No', 'Yes']);
$fields[] = $form->field($model, 'is_promote')->radioList(['No', 'Yes']);
$fields[] = $form->field($model, 'is_new')->radioList(['No', 'Yes']);
$fields[] = $form->field($model, 'is_hot')->radioList(['No', 'Yes']);
$fields[] = $form->field($model, 'is_best')->radioList(['No', 'Yes']);
$fieldGroups[] = ['label' => Yii::t('catalog', 'Other Info'), 'content' => implode('', $fields)];
$fields = [];
$fields[] = $form->field($model, 'category_id')->dropDownList(Tree::getTreesByName('商品分类'), ['data-url' => Url::to(['/catalog/core/item/item-props']), 'data-item_id' => $model->item_id, 'data-tree_id' => $model->category_id ? $model->category_id : key(Tree::getTreesByName('商品分类'))]);
$fields[] = $this->render('_form_prop', ['model' => $model, 'tree_id' => $model->category_id ? $model->category_id : key(Tree::getTreesByName('商品分类'))]);
$fieldGroups[] = ['label' => Yii::t('catalog', 'Product Info'), 'content' => implode('', $fields)];
$fields = [];
if ($model->isNewRecord) {
开发者ID:shuangjie,项目名称:galaxy,代码行数:30,代码来源:_form.php
示例8:
echo $form->field($model, 'category_id')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(\common\models\Categories::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
<?php
echo $form->field($model, 'kitchensIds')->widget(Select2::classname(), ['data' => $model->getdropKitchens(), 'options' => ['placeholder' => 'Select a Kitchens ...', 'multiple' => true], 'pluginOptions' => ['allowClear' => true]])->label('Kitchens');
?>
<?php
echo $form->field($model, 'servicesIds')->widget(Select2::classname(), ['data' => $model->getdropServices(), 'options' => ['placeholder' => 'Select a Services ...', 'multiple' => true], 'pluginOptions' => ['allowClear' => true]])->label('Services');
?>
<?php
echo $form->field($model, 'metrosIds')->widget(Select2::classname(), ['data' => $model->getdropMetros(), 'options' => ['placeholder' => 'Select a Metros ...', 'multiple' => true], 'pluginOptions' => ['allowClear' => true]])->label('Metros');
?>
<?php
echo $form->field($model, 'description')->widget(CKEditor::className(), ['editorOptions' => ['preset' => 'basic', 'inline' => false]]);
?>
<?php
echo $form->field($model, 'status')->checkbox(['value' => '0', 'label' => 'Active', 'uncheck' => '1']);
?>
<?php
echo $form->field($model, 'price_from')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'price_to')->textInput(['maxlength' => true]);
?>
开发者ID:saqbest,项目名称:res.dev,代码行数:31,代码来源:_form.php
示例9:
<?php
use mihaildev\ckeditor\CKEditor;
use yii\helpers\ArrayHelper;
use infoweb\cms\helpers\LanguageHelper;
?>
<div class="tab-content default-language-tab">
<?php
echo $form->field($model, "[{$model->language}]name")->textInput(['maxlength' => 255, 'name' => "Lang[{$model->language}][name]", 'data-duplicateable' => Yii::$app->getModule('gallery')->allowContentDuplication ? 'true' : 'false']);
?>
<?php
if (Yii::$app->getModule('gallery')->enableDescription) {
?>
<?php
echo $form->field($model, "[{$model->language}]description")->widget(CKEditor::className(), ['name' => "Lang[{$model->language}][description]", 'editorOptions' => ArrayHelper::merge(Yii::$app->getModule('cms')->getCKEditorOptions(), LanguageHelper::isRtl($model->language) ? ['contentsLangDirection' => 'rtl'] : []), 'options' => ['data-duplicateable' => Yii::$app->getModule('gallery')->allowContentDuplication ? 'true' : 'false']]);
?>
<?php
}
?>
</div>
开发者ID:infoweb-internet-solutions,项目名称:yii2-image-gallery,代码行数:21,代码来源:_default_language_tab.php
示例10:
<a data-toggle='modal' data-target='#myModal' href='#'>Обзор</a> |
<a class = 'del_img_pages' href = '#'>Удалить</a>
</div>
<?php
echo $form->field($model, 'images')->textInput(['maxlength' => true])->hiddenInput()->label(false);
?>
<div class="cleared"></div>
<br>
<?/*= $form->field($model, 'count_product')->textInput() */?><!--
--><?/*= $form->field($model, 'hint')->textInput(['maxlength' => true]) */?>
<?php
echo $form->field($model, 'fix_menu')->dropDownList(['0' => 'Не прикреплять', '1' => 'Меню 1-го уровня', '2' => 'Меню 2-го уровня']);
?>
<?php
echo $form->field($model, 'description')->widget(CKEditor::className(), ['editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions('elfinder', ['preset' => 'standard', 'inline' => false])]);
?>
</div>
<div id="panel2" class="tab-pane fade <?php
echo $tabContent2;
?>
">
<h3>Вид</h3>
<?php
echo $form->field($model, 'blokc_id')->dropDownList($block);
?>
<?php
echo Html::button('Добавить блок', ['class' => 'btn btn-success', 'id' => 'addCustBlock']);
?>
<br>
<hr>
开发者ID:apuc,项目名称:admin,代码行数:31,代码来源:_form.php
示例11:
<div class="cms-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'key')->textInput(['maxlength' => 255]);
?>
<?php
echo $form->field($model, 'name')->textInput(['maxlength' => 255]);
?>
<?php
echo $form->field($model, 'content')->widget(CKEditor::className(), ['editorOptions' => ['filebrowserBrowseUrl' => Url::to(['elfinder/manager'])]]);
?>
<?php
echo $form->field($model, 'type')->textInput(['maxlength' => 255]);
?>
<?php
echo $form->field($model, 'author')->textInput(['maxlength' => 255]);
?>
<?php
echo $form->field($model, 'status')->textInput();
?>
开发者ID:yinheark,项目名称:yincart2,代码行数:29,代码来源:_form.php
示例12:
?>
<div class="page-form">
<?php
$form = ActiveForm::begin();
?>
<div class="row">
<div class="col-md-8">
<?php
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'html')->widget(CKEditor::className(), ['editorOptions' => ['preset' => 'standard', 'inline' => false]])->label('Content');
?>
</div>
<div class="col-md-4">
<div class="box">
<div class="box-header with-border">
<div class="box-title">Publish</div>
</div>
<div class="box-body">
<div class="form-group">
<?php
echo Html::submitButton($model->isNewRecord ? Yii::t('halo/page', 'Create') : Yii::t('halo/page', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
开发者ID:chabberwock,项目名称:halo-dev,代码行数:31,代码来源:_form.php
示例13:
?>
<?php
echo $form->errorSummary($model);
?>
<?php
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'short_text')->widget(CKEditor::className(), ['editorOptions' => ElFinder::ckeditorOptions('elfinder-backend', ['preset' => 'basic'])]);
?>
<?php
echo $form->field($model, 'text')->widget(CKEditor::className(), ['editorOptions' => ElFinder::ckeditorOptions('elfinder-backend')]);
?>
<?php
echo $form->field($model, 'slug')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'status')->dropDownList(Post::getStatuses());
?>
<div class="form-group">
<?php
echo Html::submitButton($model->isNewRecord ? Yii::t('blog', 'Create') : Yii::t('blog', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
开发者ID:NullRefExcep,项目名称:yii2-blog,代码行数:31,代码来源:_form.php
示例14:
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use mihaildev\ckeditor\CKEditor;
?>
<div class="feedback-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'item_id')->hiddenInput(['value' => $_GET['id']]);
?>
<?php
echo $form->field($model, 'comment')->widget(CKEditor::className(), ['editorOptions' => ['preset' => 'standard', 'inline' => false, 'height' => '100px']]);
?>
<?php
echo $form->field($model, 'rate')->dropDownList(['5' => 'Отлично', '4' => 'Хорошо', '3' => 'Средне', '2' => 'Слабенько', '1' => 'Плохо'], ['promt' => 'Выставьте оценку']);
?>
<div class="form-group">
<?php
echo Html::submitButton('Готово', ['class' => 'btn btn-primary']);
?>
</div>
<?php
ActiveForm::end();
?>
</div>
开发者ID:aversilov,项目名称:singree-bboard,代码行数:29,代码来源:_form.php
示例15:
<div class="col-lg-4"><?php
echo $form->field($model, 'published')->dropDownList($model->publishedList, [$model->published]);
?>
</div>
<div class="col-lg-4"><?php
echo $form->field($model, 'created_by')->dropDownList($model->authorsList, [$model->created_by]);
?>
</div>
</div>
<?php
echo $form->field($model, 'intro')->textarea(['rows' => 6]);
?>
<?php
echo $form->field($model, 'text')->widget(CKEditor::className(), ['editorOptions' => ElFinder::ckeditorOptions('elfinder', ['preset' => 'full', 'inline' => false])]);
?>
<?php
if ($model->image != '') {
?>
<div class="row form-group">
<div class="col-lg-4">
<img src="<?php
echo $model->imageUrl;
?>
" alt="" class="img-responsive img-thumbnail" />
<br>
<?php
echo $form->field($model, 'image')->textInput()->label(false);
开发者ID:aldegtyarev,项目名称:fantasy,代码行数:31,代码来源:_form-main.php
示例16:
<?php
use mihaildev\ckeditor\CKEditor;
use yii\web\View;
/**
* @var $form \yii\widgets\ActiveForm
* @var $block \nullref\cms\blocks\html\Block
* @var $this \yii\web\View
*/
list(, $footnotesUrl) = Yii::$app->assetManager->publish('@nullref/cms/assets/ckeditor-plugins/codemirror');
$this->registerJs("CKEDITOR.plugins.addExternal( 'codemirror', '" . $footnotesUrl . "/','plugin.js');", View::POS_END);
?>
<?php
echo $form->field($block, 'content')->widget(CKEditor::className(), ['id' => 'editor', 'editorOptions' => ['preset' => 'full', 'inline' => false, 'extraPlugins' => 'codemirror', 'codemirror' => ['autoCloseBrackets' => true, 'autoCloseTags' => true, 'autoFormatOnStart' => true, 'autoFormatOnUncomment' => true, 'continueComments' => true, 'enableCodeFolding' => true, 'enableCodeFormatting' => true, 'enableSearchTools' => true, 'highlightMatches' => true, 'indentWithTabs' => false, 'lineNumbers' => true, 'lineWrapping' => true, 'mode' => 'htmlmixed', 'matchBrackets' => true, 'matchTags' => true, 'showAutoCompleteButton' => true, 'showCommentButton' => true, 'showFormatButton' => true, 'showSearchButton' => true, 'showTrailingSpace' => true, 'showUncommentButton' => true, 'styleActiveLine' => true, 'theme' => 'default', 'useBeautify' => true]]]);
?>
<div class="row">
<div class="col-md-6">
<?php
echo $form->field($block, 'sliderConfig')->widget('trntv\\aceeditor\\AceEditor', ['mode' => 'json', 'theme' => 'github']);
?>
</div>
<div class="col-md-6">
<?php
echo $form->field($block, 'sliderWrapperName')->textInput();
?>
<?php
echo $form->field($block, 'defaultSliderName')->textInput();
?>
<?php
开发者ID:NullRefExcep,项目名称:yii2-cms,代码行数:31,代码来源:_form.php
示例17:
<?php
echo $form->field($model, 'state')->checkbox();
?>
<hr>
<?php
echo $form->field($model, 'intro')->widget(\mihaildev\ckeditor\CKEditor::className(), ['editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions(['elfinder', 'path' => '/'], ['preset' => 'standart', 'allowedContent' => true, 'height' => '200px', 'toolbar' => Yii::$app->zoo->cke_editor_toolbar, 'contentsCss' => Yii::$app->zoo->cke_editor_css])]);
?>
<?php
echo $form->field($model, 'content')->widget(\mihaildev\ckeditor\CKEditor::className(), ['editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions(['elfinder', 'path' => '/'], ['preset' => 'standart', 'allowedContent' => true, 'height' => '200px', 'toolbar' => Yii::$app->zoo->cke_editor_toolbar, 'contentsCss' => Yii::$app->zoo->cke_editor_css])]);
?>
<?php
echo $form->field($model, 'quote')->widget(\mihaildev\ckeditor\CKEditor::className(), ['editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions(['elfinder', 'path' => '/'], ['preset' => 'standart', 'allowedContent' => true, 'height' => '200px', 'toolbar' => Yii::$app->zoo->cke_editor_toolbar, 'contentsCss' => Yii::$app->zoo->cke_editor_css])]);
?>
<hr>
<?php
echo $form->field($model, 'metaTitle')->textInput(['maxlength' => true, 'class' => 'uk-width-1-1']);
?>
<?php
echo $form->field($model, 'metaDescription')->textarea(['rows' => 2, 'class' => 'uk-width-1-1']);
?>
<?php
echo $form->field($model, 'metaKeywords')->textInput(['maxlength' => true, 'class' => 'uk-width-1-1']);
?>
开发者ID:worstinme,项目名称:yii2-zoo,代码行数:31,代码来源:update.php
示例18: date
?>
<div class="content-body">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'name')->textInput(['maxlength' => 100]);
?>
<?php
echo $form->field($model, 'detail')->widget(\mihaildev\ckeditor\CKEditor::className(), ['editorOptions' => ['preset' => 'full', 'inline' => false]]);
?>
<?php
echo $form->field($model, 'enabled')->dropDownList(['0' => '不启用', '1' => '启用']);
?>
<?php
echo $form->field($model, 'start_date')->widget(\kartik\widgets\DatePicker::className(), ['options' => ['placeholder' => 'Select operating time ...', 'value' => date('Y-m-d', time())], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd', 'todayHighlight' => true]]);
?>
<?php
echo $form->field($model, 'end_date')->widget(\kartik\widgets\DatePicker::className(), ['options' => ['placeholder' => 'Select operating time ...', 'value' => date('Y-m-d', time() + 365 * 24 * 60 * 60)], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd', 'todayHighlight' => true]]);
?>
<div class="form-group pull-right">
开发者ID:shuangjie,项目名称:galaxy,代码行数:31,代码来源:_form.php
示例19:
<?php
echo $form->field($model, 'twitter')->textInput(['maxlength' => 255]);
?>
</div>
</div>
<div class="row">
<div class="col-md-10">
<?php
echo $form->field($model, "privacyPolicy")->widget(CKEditor::className(), ["editorOptions" => ["preset" => "full", "inline" => false]]);
?>
<?php
echo $form->field($model, "legalNotice")->widget(CKEditor::className(), ["editorOptions" => ["preset" => "full", "inline" => false]]);
?>
<?php
echo $form->field($model, "terms")->widget(CKEditor::className(), ["editorOptions" => ["preset" => "full", "inline" => false]]);
?>
</div>
</div>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<?php
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
</div>
<?php
ActiveForm::end();
开发者ID:sintret,项目名称:yii2-basic,代码行数:31,代码来源:_form.php
示例20: array
/* @var $model app\models\Category */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="category-form">
<?php
$form = ActiveForm::begin();
?>
<?php
$tabsArray = array();
$i = 0;
$tinyConfigs = ['options' => ['class' => 'your_class'], 'configs' => ['plugins' => "link image", 'toolbar' => ['undo redo | styleselect fontselect fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image']]];
foreach (Yii::$app->params['languages'] as $key => $lang) {
$tabsArray[$i++] = ['label' => $lang, 'active' => $key == Yii::$app->language ? true : false, 'content' => $form->field($model, 'name_' . $key)->textInput(['maxlength' => 255]) . $form->field($model, 'description_' . $key)->widget(CKEditor::className(), ['editorOptions' => ['toolbarGroups' => Yii::$app->params['CKEtoolbarGroups'], 'width' => '800px']])];
}
?>
<?php
echo Tabs::widget(['items' => $tabsArray]);
?>
<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();
?>
开发者ID:hlcborg,项目名称:primlacosadv,代码行数:31,代码来源:_form.php
注:本文中的mihaildev\ckeditor\CKEditor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论