Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel CKEditor不';不显示在拉威尔5_Laravel_Ckeditor_Laravel 5.2 - Fatal编程技术网

Laravel CKEditor不';不显示在拉威尔5

Laravel CKEditor不';不显示在拉威尔5,laravel,ckeditor,laravel-5.2,Laravel,Ckeditor,Laravel 5.2,我想从网页中保存一些数据,为此我想在我的网页中使用CKEditor。但加载页面后,它会显示普通文本区域,而不是显示CKEditor。我按照以下流程使用它: 1下载ckeditor.zip文件,将其解压缩并放入 public>js文件夹 2.然后在HEAD tag的母版页中,我使用以下行链接它: <script type="text/javascript" src="{{ URL::asset('assets/js/ckeditor/ckeditor.js') }}"></scr

我想从网页中保存一些数据,为此我想在我的网页中使用CKEditor。但加载页面后,它会显示普通文本区域,而不是显示CKEditor。我按照以下流程使用它:

1下载ckeditor.zip文件,将其解压缩并放入 public>js文件夹

2.然后在HEAD tag的母版页中,我使用以下行链接它:

<script type="text/javascript" src="{{ URL::asset('assets/js/ckeditor/ckeditor.js') }}"></script`>  

3之后,在我的查看页面中,我使用了:

<textarea class="form-control" id="article-ckeditor" name="description" rows="3"></textarea></br>

 <script>
        CKEDITOR.replace( 'article-ckeditor' );
    </script>

CKEDITOR.替换('article CKEDITOR');
您尝试将cdn链接到我已在cdn链接中解决此问题。。


CKEDITOR.replace('editor1');

移除资产并按如下方式使用

src="{{ URL::asset('js/ckeditor/ckeditor.js') }}"

如果您的项目中本地有ckeditor,请尝试此方法

<script src="../vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>

在我的情况下,解决方案是:

{{URL::asset('vendor/unisharp/laravel-ckeditor/ckeditor.js')}}
返回路径为:

src="http://example.com/someapp/vendor/unisharp/laravel-ckeditor/ckeditor.js"

只需从标记行中删除延迟


然后一切正常,工作正常

您的js文件返回正常吗。?如果有人需要ckeditor cdn,这里是链接:是的,如果有问题,那么我集成到ckeditor中,所以我帮助您这是否意味着不需要再次下载zip版本?因为cdn链接可以工作,但是本地引用不起作用。我认为这可以帮助您找到在本地运行编辑器的解决方案。
src="http://example.com/someapp/vendor/unisharp/laravel-ckeditor/ckeditor.js"