我修改了該文件,其中有些中文字,在 IE 中打開之,發(fā)現(xiàn)是亂碼,原來這個文件有問題。文件中指定了 charset 為 utf-8:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
可是文件卻是以 ANSI 保存的,改為以 UTF-8 保存,中文不再亂碼了。
順便說一下,調(diào)用 fckeditor.html 這個編輯器的示例:
復(fù)制代碼代碼如下:
<iframe id="fckcontent" src="/fckeditor/editor/fckeditor.html?InstanceName=fckcontent&Toolbar=Default" width="780" height="360" frameborder="0" scrolling="no"></iframe>