文章摘要
本文介绍了一段使用JavaScript库FCKeditor生成富文本内容的代码示例。代码中初始化了一个FCKeditor对象,并设置了其BasePath为"fckeditor/", 高度为300像素,值为动态加载的${$content},最后调用Create()方法初始化编辑器。该代码展示了如何通过FCKeditor生成富文本内容,并将其输出到指定目录。
var oFCKeditor=new FCKeditor( ‘content’ ) ;
oFCKeditor.BasePath=”fckeditor/” ;
oFCKeditor.Height=300 ;
oFCKeditor.Value='{ $content }’ ;
oFCKeditor.Create() ;
© 版权声明
文章版权归作者所有,未经允许请勿转载。