Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/408.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
Javascript ckeditor突然停止出现在php网站上。改为显示纯文本区域_Javascript_Php_Ckeditor_Textarea_Wysiwyg - Fatal编程技术网

Javascript ckeditor突然停止出现在php网站上。改为显示纯文本区域

Javascript ckeditor突然停止出现在php网站上。改为显示纯文本区域,javascript,php,ckeditor,textarea,wysiwyg,Javascript,Php,Ckeditor,Textarea,Wysiwyg,有一个网站在几天前还运转良好。它是用PHP编码的,并且在管理面板页面中集成了CKEditor作为所见即所得编辑器,以更新内容 但是,几天后,它只显示为普通文本区域,而不是CKEditor(WYSIWYG界面)。我检查了密码,似乎一切正常。文件及其路径引用看起来也不错 可能是PHP版本升级或某些服务器端更新导致了此问题?下面是我用来显示ckeditor的代码(应用于textarea) 也许可以查看此链接:查看浏览器控制台。可能有错误。请检查此链接:签出浏览器控制台。可能有错误。 <text

有一个网站在几天前还运转良好。它是用PHP编码的,并且在管理面板页面中集成了CKEditor作为所见即所得编辑器,以更新内容

但是,几天后,它只显示为普通文本区域,而不是CKEditor(WYSIWYG界面)。我检查了密码,似乎一切正常。文件及其路径引用看起来也不错

可能是PHP版本升级或某些服务器端更新导致了此问题?下面是我用来显示ckeditor的代码(应用于textarea)



也许可以查看此链接:查看浏览器控制台。可能有错误。请检查此链接:签出浏览器控制台。可能有错误。
<textarea id="pbody" name="pbody" class="ckeditor"></textarea>
                        <?php
    // Include CKEditor class.
    include_once "../ckeditor/ckeditor.php";
    include_once '../ckfinder/ckfinder.php' ;

    // Create class instance.
    $CKEditor = new CKEditor();
    // Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
    // If not set, CKEditor will try to detect the correct path.
    $CKEditor->basePath = '../ckeditor/';

    $ckfinder = new CKFinder();

$ckfinder->BasePath = '../ckfinder/';

// Note: the BasePath property in the CKFinder class starts with a capital letter.

$ckfinder->SetupCKEditorObject($CKEditor);

    // Replace textarea with id (or name) "editor1".
    $CKEditor->replace("pbody");
    ?>