用户名:
密 码: 记住
您当前的位置:首页 > 网络编程 > php教程

php 中调用fckeditor网页编辑器方法

时间:2015-01-23  来源:西部数据  作者:西部数据

下面中要在html 中调用就行了

  1. <script src=”fckeditor/fckeditor.js”></script>  
  2. <script type=”text/网页特效”>  
  3. function showfck(){  
  4. var ofckeditor = new fckeditor('content') ;  
  5. ofckeditor.basepath = ‘fckeditor/' ;  
  6. ofckeditor.toolbarset = ‘basic' ;  
  7. ofckeditor.width = ‘100%' ;  
  8. ofckeditor.height = ‘200′ ;  
  9. ofckeditor.value = ” ;  
  10. ofckeditor.replacetextarea() ;  
  11. document.getelementbyidx(”btnshow”).disabled = ‘true';  
  12. document.getelementbyidx(”btnshow”).style.display = ‘none';  
  13. }  
  14. </script>  
  15. <textarea name=”content”></textarea>  
  16. <input id=btnshow style=”display:inline” type=button onclick=”showfck()”> 

今天我们要讲了是关于php如何调用代码如:

  1. <? 
  2. include("../editor/fckeditor.php"); 
  3. $ofckeditor = new fckeditor('fckeditor1') ;  
  4. $ofckeditor->basepath = '../editor/';  
  5. $ofckeditor->value = '';  
  6. $ofckeditor->width = '100%' ;  
  7. $ofckeditor->height = '360' ;  
  8. $ofckeditor->create() ; 
  9. ?> 

如果php要获取值就直接 $_post['fckeditor1']; 就可以了。

来顶一下
返回首页
返回首页
推荐资讯
WiFi太不安全:7岁女孩11分钟内入侵公共网络 WiFi太不安全:7岁女孩11分钟内入侵近期刚刚发布研究说WiFi网络能获得人们手机里多少私人信息,
不服跑个分?人工智能也出现“刷分”乱象 不服跑个分?人工智能也出现“刷分2014年,人工智能领域突然爆发,成为了科研和科技创业的热门
相关文章
栏目更新
栏目热门