FCK调用的方法
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>
通过爱站技术频道小编介绍的内容,相信大家都有了一定的了解,想要了解更多的技术内容,请继续关注爱站技术频道吧!