FCK的性能是非常好的,用戶可以在很短的時間內加載fckeditor所需的文件,下文是錯新技術頻道小編為您整理的FCK調用的方法,一起進入下文了解一下吧!
<script?type="text/javascript"?src="editor/fckeditor.js"></script>
<script?type="text/javascript">
<!--
//?Automatically?calculates?the?editor?base?path?based?on?the?_samples?directory.
//?This?is?usefull?only?for?these?samples.?A?real?application?should?use?something?like?this:
//?oFCKeditor.BasePath?=?'/fckeditor/'?;?//?'/fckeditor/'?is?the?default?value.
var?sBasePath?=?document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples'))?;
var?oFCKeditor?=?new?FCKeditor(?'zhangthree'?)?;
oFCKeditor.BasePath?=?'/editor/'?;
oFCKeditor.Height?=?300?;
oFCKeditor.Value?=?'隨便寫點內容!'?;
oFCKeditor.Create()?;
//-->
</script>
通過錯新技術頻道小編介紹的內容,相信大家都有了一定的了解,想要了解更多的技術內容,請繼續關注錯新技術頻道吧!
新聞熱點
疑難解答
圖片精選