CK编辑器已正确加载。它已正确初始化,图像,链接,关于等的按钮正在工作。但是我无法输入ckeditor。单击时没有插入符号。
在其他页面中,ck编辑器运行正常。 在此页面中,发生错误的位置使用添加更多按钮多次初始化CK编辑器。 我的代码如下:
<script>
$(function(){
$(".add").click(function() {
$("table").append("<tr><td>"+ $("#untouched").html() +"</td></tr>");
});
$("table").on('click', '.delete', function() {
$(this).closest("tr").remove();
});
});
</script>
<div class="page-header page-header-default">
<div class="page-header-content">
<div class="page-title">
<h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold">Home</span> -
Travel Packages</h4>
</div>
</div>
<div class="breadcrumb-line">
<ul class="breadcrumb">
<li><a href="{{ route('admin.dashboard') }}"><i class="icon-home2 position-left"></i> Home</a>
</li>
<li class="active">Travel Packages</li>
</ul>
</div>
</div>
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title"><i class="icon-file-plus position-left"></i>Create Package Itinerary</h5>
<div class="heading-elements">
<a href="{{ route('admin.travel-package.index') }}" class="btn btn-default legitRipple pull-right">
<i class="icon-undo2 position-left"></i>
Back
<span class="legitRipple-ripple"></span>
</a>
</div>
</div>
<div class="panel-body">
{!! Form::open(array('route' => ['admin.travel-package-itinerary.store', $package->id],'class'=>'form-horizontal','id'=>'validator', 'files' => 'true')) !!}
<fieldset class="content-group">
<table class="col-md-12">
</table>
<div id="untouched" class="hide">
<div class="form-group col-md-12">
<label class="control-label col-lg-12">Day <span class="text-danger">*</span></label>
<div class="col-lg-12">
{!! Form::text('day[]', null, array('class'=>'form-control','placeholder'=>'Day')) !!}
</div>
</div>
<div class="clearfix"></div>
<div class="form-group col-md-12">
<label class="control-label col-lg-12">Information <span class="text-danger">*</span></label>
<div class="col-lg-12">
{!! Form::textarea('information[]', null, array('class'=>'form-control editor','placeholder'=>'Information', 'rows' => '2')) !!}
</div>
</div>
<div class="clearfix"></div>
<a href="javascript:void(0);" class="btn btn-danger btn-xs delete">Remove</a>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</fieldset>
<div class="text-left col-lg-offset-2">
<a href="javascript:void(0);" class="btn btn-primary add">Add Information</a>
<button type="submit" class="btn btn-success legitRipple">
Submit <i class="icon-arrow-right14 position-right"></i></button>
</div>
{!! Form::close() !!}
</div>
</div>