A-A+

smarty模板中调用fckeditor编辑器方法

2016年01月14日 PHP技术文章 暂无评论 阅读 6 views 次

fckeditor编辑大有很多种调用方法,最常用的是提供了php,asp,asp.net这几种我们在程序中调用了,同时它也支持js调用方法,下面我们来看js调用fckeditor编辑器的方法,代码如下:

  1. <script type="text/javascript" src="fckeditor/fckeditor.js"></script>   
  2. <form method="POST">   
  3. <script type="text/javascript">   
  4. var oFCKeditor = new FCKeditor( 'content' ) ;   
  5. oFCKeditor.BasePath = "fckeditor/" ;   
  6. oFCKeditor.Height = 300 ;   
  7. oFCKeditor.Value = '{ $content }' ;   
  8. oFCKeditor.Create() ;   
  9. </script>   
  10. </form>  
标签:

给我留言