The ckeditor editor is loaded asynchronously. Note:
1. ckeditor undefined: ckeditor. JS is not loaded.
Solution:
1. Place the JS file on the parent page
<SCRIPT src = "http://www.cnblogs.com/../Content/ckeditor/ckeditor.js" type = "text/JavaScript"> </SCRIPT>
<SCRIPT src = "http://www.cnblogs.com/../Content/ckeditor/ckfinder/ckfinder.js" type = "text/JavaScript"> </SCRIPT>
2. For the first request to generate an editor, you must destroy the editor generated last time and regenerate the new editor.
<Textarea id = " Content " Rows = " 6 " Cols = " 10 " > </Textarea> <SCRIPT type = " Text/JavaScript " > Jquery (function (){ // 300 pop-up window Loadck ( 300 ) ;}); Function loadck (HH ){ // Load ckeditor // Determine whether content exists VaR Editor; If (! Ckeditor. Instances. Content ){ VaR Editor = ckeditor. Replace ( ' Content ' , {Height: 300 });} Else {Addckeditor ( " Content " , HH );}} // New ckeditor Function addckeditor (ID, HH ){ VaR Editor2 = Ckeditor. Instances [ID]; // Destroy the editor content, and then add If (Editor2) editor2.destroy ( True ); Editor = Ckeditor. Replace (ID, {Height: hh });} </SCRIPT>
View code
Reference: http://blog.sina.com.cn/s/blog_7795200201013cjt.html
Second: Lang. contextmenu. options' is null or not an object.
Solution: substantive ckeditor JS file reference
1. Modify the official ckeditor. JS, so that some configurations are not deleted.
2. Is the ckeditor. js path correct?
Third: ckeditor. js file configuration details
Reference: http://blog.csdn.net/yangchaofeng1229/article/details/6723235