Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用
alert(FCKeditorAPI.GetInstance("FCKeditor1").GetXHTML());
在萤火虫输出控制台并获得参考“FCKeditorAPI 未定义”。你能告诉我如何解决这个问题吗?
谢谢!
由于您的帖子是最新的,我想您使用的是 FCKeditor 版本 3。
如果是这样,要获取编辑器实例,您应该使用:
CKEDITOR.instances["FCKeditor1"];
试试这个,通过将它绑定到某个事件
if( typeof( FCKeditorAPI ) !== "undefined" ) FCKeditorAPI.GetInstance("FCKeditor1").GetXHTML()