laravel 5 中未显示 CKEditor

CKEditor doesn't show in laravel 5

我想从网页中保存一些数据,为此我想在我的页面中使用 CKEditor。但是在加载页面后,它显示的是正常的 textarea 而不是 CKEditor 。我按照以下过程使用它:

1 下载ckeditor.zip文件,解压后放入 public > js 文件夹

2.then 在我的母版页中的 HEAD 标记中,我使用以下行 link 它:

<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>

你试试 cdn link 我已经在 cdn link 解决了这个问题..

<textarea name="editor1"></textarea>
        <script>
            CKEDITOR.replace( 'editor1' );
        </script>

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

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')}}

Return 路径是:

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

只需删除标记行

中的延迟

然后就可以了,效果很好