首页 >php教程 >php手册 >php 中调用fckeditor网页编辑器方法

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

WBOY
WBOY原创
2016-05-25 16:53:232005浏览

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

<script src="fckeditor/fckeditor.js"></script>  
<script type="text/javascript">  
function showfck(){  
    var ofckeditor = new fckeditor(&#39;content&#39;) ;  
    ofckeditor.basepath = &#39;fckeditor/&#39; ;  
    ofckeditor.toolbarset = &#39;basic&#39; ;  
    ofckeditor.width = &#39;100%&#39; ;  
    ofckeditor.height = &#39;200&prime; ;  
    ofckeditor.value = " ;  
    ofckeditor.replacetextarea() ;  
    document.getelementbyidx("btnshow").disabled = &#39;true&#39;;  
    document.getelementbyidx("btnshow").style.display = &#39;none&#39;;  
}  
</script>  
<textarea name="content"></textarea>  
<input id=btnshow style="display:inline" type=button onclick="showfck()">

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

<?php
include("../editor/fckeditor.php"); 
$ofckeditor = new fckeditor(&#39;fckeditor1&#39;) ;  
$ofckeditor->basepath = &#39;../editor/&#39;;  
$ofckeditor->value = &#39;&#39;;  
$ofckeditor->width = &#39;100%&#39; ;  
$ofckeditor->height = &#39;360&#39; ;  
$ofckeditor->create() ; 
?>

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


文章链接:

随便收藏,请保留本文地址!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn