Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.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
Ckeditor 我的编辑器没有加载工具栏_Ckeditor - Fatal编程技术网

Ckeditor 我的编辑器没有加载工具栏

Ckeditor 我的编辑器没有加载工具栏,ckeditor,Ckeditor,我试图在php中安装ckeditor,但没有结果:S 我已将ckeditor文件上载到网站的根目录中,我有一个editor.html文件,其中包含以下代码: <html> 当我打开页面时,除了一个简单的文本区域外,它不会显示工具栏 你们中有谁知道我在这里到底错过了什么吗?我不知道这是否是你的情况,但万一这对将来的其他人有帮助 我正在向我的项目中添加CKEditor,但工具栏也没有显示出来。我可以看出javascript文件已加载,css文件已加载。也没有javascript错误

我试图在php中安装ckeditor,但没有结果:S

我已将ckeditor文件上载到网站的根目录中,我有一个editor.html文件,其中包含以下代码:

<html>

当我打开页面时,除了一个简单的文本区域外,它不会显示工具栏


你们中有谁知道我在这里到底错过了什么吗?

我不知道这是否是你的情况,但万一这对将来的其他人有帮助

我正在向我的项目中添加CKEditor,但工具栏也没有显示出来。我可以看出javascript文件已加载,css文件已加载。也没有javascript错误


最后,我把它缩小到jquery插件jquery.style-select和CKEditor之间的冲突。当我删除插件时,工具栏显示得非常完美。

也许你可以试试这个:

CKEDITOR.replace('editor1', {width: 1050, height: 500,  uiColor: '#e1e1e1'});
也就是说,你可以改变尺寸


因此,可以说,最好使用此代码

您的代码看起来很好。检查/ckeditor的位置/
<form method="post">
    <p>
        My Editor:<br />
        <textarea id="editor1" name="editor1">&lt;p&gt;Initial value.&lt;/p&gt;</textarea>
        <script type="text/javascript">
            CKEDITOR.replace( 'editor1' );
        </script>
    </p>
    <p>
        <input type="submit" />
    </p>
</form>
CKEDITOR.replace('editor1', {width: 1050, height: 500,  uiColor: '#e1e1e1'});