2017-04-13 3 views
0

システム情報を与え続ける:PHPバージョン-5.3.10-1ubuntu3.26。 Webサーバー:Apache/2.2.22(Ubuntu); WebServerからPHPへのインターフェイス - apache2handler;バージョンJoomla! 2.5.28安定[敵] 2014年12月20日15:00 GMT; Joomla!プラットフォームのバージョン - Joomlaプラットフォーム11.4.0安定。それでも、私:CKEditor.replaceはエラーに

<script type='text/javascript'>CKEDITOR.replace('editor1');</script> 

がエラーを与え続け:

VM3764:84 GET domain.com/index.php/apps/config.js?t=G87E 404 (Not Found) 
VM3764:84 GET domain.com/index.php/apps/skins/moono/editor.css?t=G87E 
VM3764:84 GET domain.com/index.php/apps/lang/en.js?t=G87E 404 (Not Found) 
CKEDITOR.env.ie.e.$.onerror @ VM3764:232 
VM3764:84 GET domain.com/index.php/apps/lang/en.js?t=G87E 404 (Not Found) 
CKEDITOR.event.CKEDITOR.event.fire @ VM3764:12 
CKEDITOR.editor.CKEDITOR.editor.fire @ VM3764:13 
CKEDITOR.env.ie.e.$.onerror @ VM3764:232 
VM3764:230 Uncaught TypeError: Cannot set property 'dir' of undefined 

完全なコード関与は、単にこれです:

echo"<script type='text/javascript' src='https://fabrik.smartstartinc.net/ncpcphp/ckeditor/ckeditor.js'></script>"; 
echo"<div name='editor1' id='editor1' rows='10' cols='80'>replace this div with CKEditor.</div>"; 
echo"<script type='text/javascript'>CKEDITOR.replace('editor1');</script>"; 

CKEditorsを使用しては、[複数、同じ結果を試みた]:標準[4.0 、4.5.11、4.6.2]、および完全な4.6.2]。非常に困惑し、エラーは持続する。アイデア?

答えて

0

このコードはHTMLの頭部領域であることができます。または、ここで私はちょうどPHPスクリプトケースSTMTS一連の前にそれを置く - CKEditorバージョンは、divの領域の上に表示される場所に私を得た:

<script type='text/javascript'> window.CKEDITOR_BASEPATH ='https and domain URL here/ckeditor/';</script> 
<script type='text/javascript' src='https and domain URL here/ckeditor/ckeditor.js'></script> 
<script type='text/javascript' src='https and domain URL here/ckeditor/config.js'></script> 

と新しいCKEditorバージョンのツールバーを受け入れるために使用される既存のdivコード:

echo "<div id = '$val' class = 'DetailBox' style='display:none; height:415px'></div>"; 

、最終的には、機能を置き換える:

echo"<script type='text/javascript'>CKEDITOR.replace('$val');</script>"; 

BasePathの文はすべて一緒にそれに合わせて、最終的な作品でした。

関連する問題