• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ckeditor\CKEditor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中dosamigos\ckeditor\CKEditor的典型用法代码示例。如果您正苦于以下问题:PHP CKEditor类的具体用法?PHP CKEditor怎么用?PHP CKEditor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CKEditor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1:

?>

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

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

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

    <?php 
echo $form->field($model, 'description')->widget(CKEditor::className(), []);
?>

    <div class="properties">
        <?php 
DynamicFormWidget::begin(['widgetContainer' => 'dynamicform_wrapper', 'widgetBody' => '.container-items', 'widgetItem' => '.item', 'min' => 0, 'insertButton' => '.add-item', 'deleteButton' => '.remove-item', 'model' => $model, 'formId' => 'dynamic-form', 'formFields' => ['name', 'value']]);
?>

        <div class="panel panel-default">
            <div class="panel-heading">
                <h4>
                    <i class="glyphicon glyphicon-tags"></i> Характеристики
                    <button type="button" class="add-item btn btn-success btn-sm pull-right">
                        <?php 
echo FA::icon('plus');
?>
开发者ID:spinybeast,项目名称:etagi,代码行数:31,代码来源:_form.php


示例2: registerPlugin

 /**
  * Registers CKEditor plugin
  */
 protected function registerPlugin()
 {
     if ($this->enableKCFinder) {
         $this->registerKCFinder();
     }
     parent::registerPlugin();
 }
开发者ID:LosYear,项目名称:yii2-fluent,代码行数:10,代码来源:CKEditor.php


示例3: FieldSet

use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $model im\cms\models\Page */
/* @var $form yii\widgets\ActiveForm */
?>

<?php 
Pjax::begin(['id' => 'page-form']);
?>

<?php 
$form = ActiveForm::begin(['id' => 'batch-update-form', 'options' => ['data-pjax' => 1]]);
?>

<?php 
echo new FieldSet('category', [new TabSet('tabs', [new Tab('main', Module::t('category', 'Main'), [$model->isNewRecord ? $form->field($model, 'type')->dropDownList($model::getTypesList(), ['data-field' => 'type']) : null, $form->field($model, 'title')->textInput(['maxlength' => true]), $form->field($model, 'slug')->textInput(['maxlength' => true]), $form->field($model, 'content')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'clientOptions' => ['filebrowserBrowseUrl' => Url::to(['/elfinder/manager']), 'filebrowserImageBrowseUrl' => Url::to(['/elfinder/manager', 'filter' => 'image'])]]), $form->field($model, 'status')->dropDownList($model::getStatusesList())])])]);
?>

<?php 
echo Html::submitButton($model->isNewRecord ? Module::t('module', 'Create') : Module::t('module', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-primary' : 'btn btn-success']);
?>

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

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

<?php 
开发者ID:manyoubaby123,项目名称:imshop,代码行数:31,代码来源:_form.php


示例4: registerPlugin

 /**
  * Registers CKEditor plugin
  */
 protected function registerPlugin()
 {
     if ($this->filemanager) {
         $this->registerKCFinder();
     }
     if ($this->onChange) {
         $this->registerOnChange();
     }
     parent::registerPlugin();
 }
开发者ID:firdows,项目名称:yii2-mkeditor,代码行数:13,代码来源:CKEditor.php


示例5:

/* @var $this yii\web\View */
/* @var $model app\models\CalendarCodeDescriptions */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="calendar-code-descriptions-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'code_title')->textInput(['maxlength' => 25]) ?>

    
    <?= $form->field($model, 'description')->widget(CKEditor::className(), [
        'options' => ['rows' => 6],
        'preset' => 'basic'
    ]) ?>
    
    <?= $form->field($model, 'zijn_description')->widget(CKEditor::className(), [
        'options' => ['rows' => 6],
        'preset' => 'basic'
    ]) ?>
    

    <div class="form-group">
        <?= 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>
开发者ID:jaccos,项目名称:wrkmtspr_prd,代码行数:30,代码来源:_form.php


示例6:

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\ckeditor\CKEditor;
/* @var $this yii\web\View */
/* @var $model lukisongroup\widget\models\Notulen */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="notulen-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName()]);
?>

    <?php 
echo $form->field($model, 'RESULT_SCHEDULE')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']);
?>

    <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>
开发者ID:adem-team,项目名称:advanced,代码行数:29,代码来源:set_hasil.php


示例7:

<div class="news-form">

    <?php 
$form = ActiveForm::begin();
?>

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

    <?php 
echo $form->field($model, 'anons')->textarea(['rows' => 6]);
?>

    <?php 
echo $form->field($model, 'text')->widget(CKEditor::className(), ['options' => ['rows' => 6]]);
?>



    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

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

</div>
开发者ID:kilinanatoly,项目名称:azimut,代码行数:31,代码来源:_form.php


示例8:

			<?php 
echo $form->field($model, 'PIC')->textInput();
?>
		</div>
		<div class="col-lg-4">
			<?php 
echo $form->field($model, 'TLP1')->textInput()->label('TLP');
?>
		</div>
		<div class="col-lg-4">
			<?php 
echo $form->field($model, 'FAX')->textInput();
?>
		</div>
		<div class="col-lg-12">
			<?php 
echo $form->field($model, 'ALAMAT_KIRIM')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']);
?>
	  
		
			<?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary btn-xs']);
?>
		
		<?php 
ActiveForm::end();
?>
		</div>
	</div>
</div>
开发者ID:adem-team,项目名称:advanced,代码行数:30,代码来源:so_shiping.php


示例9: function

                reader.onload = function (e) {
                    $('#blah').attr('src', e.target.result);
                }

                reader.readAsDataURL(input.files[0]);
            }
        }

        $("#imgInp").change(function(){
            readURL(this);
        });
    </script>

    <?php 
echo $form->field($model, 'content')->widget(CKEditor::className(), ['options' => ['rows' => 10], 'preset' => 'full', 'clientOptions' => ['filebrowserUploadUrl' => '/daitech-admin/project/upload']]);
?>


    <?php 
echo $form->field($model, 'start_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Start date ...'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd']]);
?>
    <?php 
echo $form->field($model, 'end_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'End date ...'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd']]);
?>

    <div class="form-control">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
开发者ID:phamviet1510,项目名称:daitech-web,代码行数:30,代码来源:_form.php


示例10:

echo $form->field($model, 'meta_title')->textInput(['maxlength' => true]);
?>
        <?php 
echo $form->field($model, 'meta_description')->textInput(['maxlength' => true]);
?>
        <?php 
echo $form->field($model, 'meta_keywords')->textInput(['maxlength' => true]);
?>
        <?php 
// echo $form->field($model, 'search_text')->textInput(['maxlength' => true])
?>
        <?php 
// echo $form->field($model, 'image_path')->textInput(['maxlength' => true, 'readonly' => true])
?>
        <?php 
echo $form->field($model, 'shipping_detail')->widget(CKEditor::className(), ['preset' => 'standard', 'clientOptions' => ['height' => 200, 'language' => 'vi', 'uiColor' => '#E4E4E4', 'image_previewText' => '&nbsp;', 'filebrowserUploadUrl' => Url::to(['file/ckeditor-upload-image'], true)]]);
?>
        <?php 
echo $form->field($model, 'product_id')->textInput(['readonly' => true, 'type' => 'hidden'])->label(false);
?>
    </div>
    
    <div class="col-md-12">
        <div class="form-group">
            <?php 
echo Html::submitButton($model->isNewRecord ? 'Thêm mới' : 'Cập nhật', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
        </div>
    </div>

    <?php 
开发者ID:quyettvq,项目名称:luspel,代码行数:31,代码来源:_form.php


示例11: wysiwyg

 public function wysiwyg($options = [])
 {
     $this->parts['{input}'] = CKEditor::widget(['model' => $this->model, 'attribute' => $this->attribute, 'options' => $options]);
     return $this;
 }
开发者ID:ExtPoint,项目名称:project-boilerplate,代码行数:5,代码来源:AppActiveField.php


示例12:

        </div>
        <div class="col-md-5">
            <?php 
echo $form->field($model, 'publishTime')->widget(DateTimePicker::classname());
?>
            <?php 
echo $form->field($model, 'image')->widget(FileInput::className());
?>
            <?php 
echo $form->field($model, 'isPublished')->checkbox();
?>
        </div>
    </div>
    <?php 
echo $form->field($model, 'previewText')->widget(CKEditor::className());
?>
    <?php 
echo $form->field($model, 'text')->widget(CKEditor::className());
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? \Yii::t('app', 'Добавить') : \Yii::t('app', 'Сохранить'), ['class' => 'btn btn-primary']);
?>
    </div>

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

<?php 
开发者ID:ExtPoint,项目名称:project-boilerplate,代码行数:31,代码来源:update.php


示例13:

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

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

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

    
     <?php 
echo $form->field($model, 'detail')->widget(CKEditor::className(), ['preset' => 'custom', 'clientOptions' => Yii::$app->params['ckeditor']['default']]);
?>


    <?php 
//echo $form->field($model, 'createdOn')->textInput()
?>

    <?php 
//echo $form->field($model, 'createdBy')->textInput()
?>

    <?php 
//echo $form->field($model, 'updatedOn')->textInput()
?>
开发者ID:rajanishtimes,项目名称:partnerapi,代码行数:29,代码来源:_form.php


示例14:

<div class="service-form">

    <?php 
$form = ActiveForm::begin();
?>

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

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

    <?php 
echo $form->field($model, 'text')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'standart']);
//basic standart full
?>

    <?php 
echo $form->field($model, 'num')->textInput();
?>

    <?php 
echo $form->field($model, 'on')->dropDownList(['1' => 'yes', '0' => 'no']);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
开发者ID:kuzma17,项目名称:paveldent,代码行数:31,代码来源:_form.php


示例15: date

    <?php 
$form = ActiveForm::begin(['options' => ['id' => 'create-event-form']]);
?>


    <?php 
echo $form->field($model, 'interest_id')->dropDownList(ArrayHelper::map(Areaintrest::find()->all(), 'id', 'area_intrest'), ['prompt' => 'Select Event Category']);
?>

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


    <?php 
echo $form->field($model, 'description')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']);
?>


    <?php 
echo $form->field($model, 'location')->textInput(['class' => 'placepicker form-control']);
?>

    <?php 
echo $form->field($model, 'eopen_date')->widget(DateTimePicker::className(), ['name' => 'eopen_date', 'options' => ['placeholder' => 'Select Entries open time ...'], 'convertFormat' => true, 'pluginOptions' => ['orientation' => 'top', 'format' => 'd-M-y hh:i ', 'startDate' => date('yyyy-MM-dd hh:ii:ss'), 'autoclose' => true, 'todayHighlight' => true]]);
?>

    <?php 
echo $form->field($model, 'eclose_date')->widget(DateTimePicker::className(), ['name' => 'eclose_date', 'options' => ['placeholder' => 'Select Entries close time ...'], 'convertFormat' => true, 'pluginOptions' => ['orientation' => 'top', 'format' => 'd-M-y hh:i ', 'autoclose' => true, 'startDate' => date('yyyy-MM-dd hh:ii:ss'), 'todayHighlight' => true]]);
?>
开发者ID:praveen-tissera,项目名称:Horsebuzz,代码行数:30,代码来源:_form.php


示例16:

<div class="company-update">

    <div class="company-form">
        <div class="row">
            <div class="box box-primary">
                <div class="box-body">
                    <?php 
$form = ActiveForm::begin();
?>

                    <?php 
if (Yii::$app->controller->action->id == 'terms-and-agreement') {
    ?>
                        <?php 
    echo $form->field($model, 'terms_and_condition')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'full']);
    ?>
                    <?php 
}
?>

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

                    <?php 
ActiveForm::end();
?>
                </div>
开发者ID:noorafree,项目名称:makmakan,代码行数:30,代码来源:terms-and-agreement.php


示例17:

/* @var $model app\models\Content */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="content-form">

    <?php 
$form = ActiveForm::begin();
?>

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

    <?php 
echo $form->field($model, 'body')->widget(\dosamigos\ckeditor\CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'full']);
?>

    <?php 
echo $form->field($model, 'data')->textInput();
?>

    <?php 
echo $form->field($model, 'user_id')->textInput();
?>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Изменить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
开发者ID:vetal06,项目名称:diplom,代码行数:31,代码来源:_form.php


示例18:

?>

            <?php 
echo $form->field($model, 'mobilenumber');
?>

            <?php 
echo $form->field($model, 'clubname');
?>

            <?php 
echo $form->field($model, 'address')->textInput(['class' => 'placepicker form-control']);
?>

            <?php 
echo $form->field($model, 'description')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic', 'clientOptions' => ['filebrowserUploadUrl' => Url::to(['ckeditor/url'])]]);
?>




            <div class="form-group">
                <?php 
echo Html::submitButton('Update', ['class' => 'btn btn-danger', 'name' => 'update-button']);
?>
            </div>

            <?php 
ActiveForm::end();
?>
        </div>
开发者ID:praveen-tissera,项目名称:Horsebuzz,代码行数:31,代码来源:profile.php


示例19:

?>
</td>
      </tr>
      
    </tbody>
  </table>
</div>

<div class="proggresjob-form">
 
    <?php 
$form = ActiveForm::begin(['method' => 'post', 'action' => ['/it/proggresjob/detailprogress']]);
?>

    <?php 
echo $form->field($model, 'keterangan_detail')->widget(CKEditor::className(), ['value' => 'Please write your comment', 'options' => ['rows' => 6], 'preset' => 'basic']);
?>

    <?php 
echo $form->field($model, 'start_data')->widget(DateTimePicker::className(), ['template' => '{addon}{input}', 'value' => '', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
     <?php 
echo $form->field($model, 'proggres_id')->hiddenInput();
?>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'POST', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
开发者ID:C12D,项目名称:advanced,代码行数:31,代码来源:view.php


示例20: function

use yii\widgets\ActiveForm;
use yii\helpers\Url;
//use app\widgets\CKEditor;
use dosamigos\ckeditor\CKEditor;
$this->beginPage();
$this->beginBody();
$form = ActiveForm::begin(['options' => ['id' => 'content-edit-form', 'class' => 'form-horizontal', 'role' => 'form']]);
$inputOptions = ['labelOptions' => ['class' => 'col-sm-1 control-label'], 'template' => "{label}\n<div class=\"col-sm-11\">{input}\n{hint}\n{error}</div>"];
?>

<?php 
echo $form->field($model, 'place')->hiddenInput()->label(false);
?>
<div id="editStatus" class="hide2 box-body"></div>
   <?php 
echo $form->field($model, 'content', $inputOptions)->widget(CKEditor::className(), Yii::$app->getModule('livecontent')->editorOptions);
?>

<?php 
ActiveForm::end();
$this->endBody();
$this->endPage();
?>

<script type="text/javascript">
   CKEDITOR.on('instanceReady', function(){      
      CKEDITOR.instances['contentdata-content'].resize('100%', 300);        
   })

   $("#content-edit-form").submit(function(event) {
      event.preventDefault();      
开发者ID:sergeykoz,项目名称:yii2-livecontent,代码行数:31,代码来源:html.php



注:本文中的dosamigos\ckeditor\CKEditor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP datepicker\DatePicker类代码示例发布时间:2022-05-23
下一篇:
PHP Documents\User类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap