2013-10-09 33 views

回答

0

要設置爲只讀,使用CustomConfig方法:

CKEDITOR.replace(id,{customConfig :readOnly:true}); 

Example: 
     <textarea id="editor1">Test</textarea> 
     CKEDITOR.replace('editor1',{width:'700px',readOnly:true}); 

Js Fiddle Demo

+0

肯定。但你仍然可以改變文字樣式,如使其爲粗體或斜體或更改字體顏色 –

+0

否U不能更改文字樣式花花公子 – Nandakumar

+0

jsfiddle演示http://jsfiddle.net/B4yGJ/2/ – Nandakumar

相關問題