2010-11-22 7 views
10

IE7에서만이 오류가 발생합니다.IE7에서 CKeditor를 사용할 때 "lang.link.toolbar가 null이거나 객체가 아닙니다"

lang.link.toolbar는 null 또는 내가 언어를 설정할 때 실수로 뭔가를 삭제 한 생각

하지 객체, 그래서 ckeditor/lang/en.js에 가서 참으로 CKEDITOR.lang.en.link.toolbar가 설정되어 있었다 .

내가 이렇게 같은 jQuery를 어댑터를 사용하여 실제 CKEditor를 ... 설정

$('#input-product-description').ckeditor(
    function() { /* callback code */ }, 
    { 
    startupFocus: true, 
    language: 'en', 
    defaultLanguage: 'en', 
    removePlugins : 'smiley, about, sourcearea, flash, newpage, pagebreak, popup, preview, stylescombo, table, tabletools, elementspath, save, templates, print, find, font, forms, horizontalrule, justify, format, colorbutton, div, blockquote, indent, clipboard, image, showblocks, wsc' , 
    toolbar : 
     [ 
     ['Undo','Redo'], 
     ['Bold','Italic'], 
     ['NumberedList','BulletedList'] 
     ], 
    resize_enabled: false 

}); 
이 오류가 발생할 수 있습니다 이유

사람이 알고 있나요

?

+1

에 다중 언어 인터페이스 탭에서 다음 examble을 가능하게 볼 수 있습니다 관련 : http://dev.ckeditor.com/ticket/7705 – graphicdivine

+0

어둠의 제안을 던지기 만하면되지만, IE7을 사용할 준비가 된 상태에서 몇 가지 문제가 있음을 기억합니다. 아마도 바인딩이 window.load 이벤트 후에 발생하는지 확인하십시오. –

답변

1

당신이 ckEditor 언어를 변경하려는 경우 PLZ 다음과 같은이를 추가하려고 : 또는 CKEditor language demo

var editor = CKEDITOR.instances.editorName; // GETTING AN INSTANCE OF THE EDITOR 
var editorData = editor ? editor.getData() : initialHtml; // GET THE OLD DATA IF YOU WANT TO REUSE IT 
if (editor) { 
editor.destroy(); // DESTROY THE OLD EDITOR 
} 
editor = CKEDITOR.appendTo('demoInside', { language: 'en' }); // add new one to your target 
editor.setData(editorData); // set your new data 
관련 문제