加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

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

发布时间:2020-12-13 20:52:48 所属栏目:PHP教程 来源:网络整理
导读:下面中要在html 中调用就行了 script src =fckeditor/fckeditor.js / script script type =text/网页特效 functionshowfck(){ var ofckeditor = new fckeditor(content); ofckeditor.basepath =fckeditor/; ofckeditor.toolbarset =basic; ofckeditor.width

下面中要在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']; 就可以了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读