1.ckeditor中config.js修改無效
解決方法:jsp頁面上添加
“<link type="text/css" rel="stylesheet"
href="ckeditor/contents.css"
/>”
2.ckeditor+ckfinder圖片上傳功能配置好後,能上傳圖片並且在編輯器中預覽,但是選中上傳好的圖片後,無法預覽,替換成ckeditor的文本區也無法查看到圖片.(沒使用絕對路徑的同學繼續自己找原因吧-
-)
解決方法:config.xml中設置成
“<baseDir>d:/DOC_SERVER/UserFiles/</baseDir>
<baseURL>http://localhost:8080/docserver/UserFiles</baseURL>”
第一個baseDir設成絕對路徑,第二個baseURL設置成tomcat中server.xml中配置的相對路徑,顯示正常.
3.ckeditor中添加字體
解決方法:修改ckeditor.js,搜索times
new,在CKEDITOR.config.font_names中添加"宋體/SimSun;黑體/SimHei;"即可