CK编辑器更新时发出

时间:2018-09-13 05:28:25

标签: html laravel ckeditor

在ck编辑器更新期间,我正在应用样式,如果更新的样式不适用,则第二次应用样式

<div class="panel panel-default">
     <div class="panel-heading">
         <p>{!!trans('cms.title') !!}</p>
     </div>
     <div class="panel-body">
        <div class='container'>
            <div class="row">
                <div class="form-group">
                        {!! Form::label('ed_name', trans('cms.name'), array('class' => 'col-xs-4 col-sm-4 col-md-2
col-lg-2 control-label')) !!}
                   <div class="col-xs-8 col-sm-3 col-md-3 col-lg-8">
                                {!! Form::text('ed_name', @$cms->ed_name, array('class'=>'form-control',
'parsley-trigger'=>'change', 'maxlength' => 100, 'required')) !!}  
                    </div>
               </div>               
               <div class="form-group">
                        {!! Form::label('ed_content', trans('cms.content'), array('class' => 'col-xs-4 col-sm-4 col-md-2
col-lg-2 control-label')) !!}
               <div class="col-xs-8 col-sm-3 col-md-3 col-lg-8" widht="28">
                                {!! Form::textarea('ed_content', @$cms->ed_content, array('class'=>'form-control','required','id' =>
'editor')) !!} 

                        </div>
                    </div>  

                    <div class="form-group">

                      <div class="col-xs-4 col-sm-4 col-md-2 col-lg-2">
                    </div>
                    <div class="col-xs-8 col-sm-3 col-md-3 col-lg-2">
                            {!! Form::submit((@$cms->id) ? trans('main.update') : trans('main.add'),['class' => 'btn
btn-primary']) !!}
                            {!! Html::link(route('cms.index'), trans('main.cancel'), array('class' => 'btn btn-danger
danger-cancel'), true) !!}
                        </div>
                    </div>

                </div>
            </div> 
        </div>
    </div>  </div>

 {!! Html::script('/vendor/ckeditor/ckeditor.js') !!}  {!!
Html::script('/vendor/ckeditor/samples/js/sample.js') !!}

<script>
    initSample(); </script>

这是我的代码

0 个答案:

没有答案