2017-09-14 3 views
0

で見られていない私は私の文書レディ機能にはなぜCKEditorバージョンvarが機能

$(document).ready(function(event){ 

var editor1 = CKEDITOR.replace("noteDetail", { 
    baseHref: CKEDITOR.basePath, 
    customConfig: CTX_PATH + '/resources/js/ckeditor_config.js', 
    removeButtons: 'Save' 
}); 

を以下している私は、VARに私のCKEditorバージョンのインスタンスからテキストをキャプチャしようsaveNote()関数を持っていますエディタ1は表示されません。私は何が間違っているのか分かりません。

var detail = CKEDITOR.instances.editor1.getData(); 

IDEは未解決であると通知します。

enter image description here

答えて

0

CKEDITOR.instances.noteDetailまたはその呼び出しvar detail = CKEDITOR.instances.editor1.getData();ready機能の範囲内でなされている場合、単にeditor1使用してください。

関連する問題