CKEditor不显示在laravel 5 [英] CKEditor doesn't show in laravel 5

查看:332
本文介绍了CKEditor不显示在laravel 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I want to save some data from a webpage and for that i wanted to use CKEditor in my page. But after loading the page it's showing normal textarea instead of showing CKEditor . i followed the following process to use it:

1下载ckeditor.zip文件,将其解压缩并放置在
public> js folder

1 Download the ckeditor.zip file, uncompressed it and placed it in public > js folder

2.在我的HEAD标签的主页中,我使用以下行来链接它:

2.then in my master page in HEAD tag i have used the following line to link it:

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

3之后,在我的viewpage中我使用了:

3 after that in my viewpage i have used :

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

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


推荐答案

您尝试cdn链接我已经解决这个问题in cdn link ..

you try to cdn link to i have solve this problem in cdn link..

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

这篇关于CKEditor不显示在laravel 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆