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

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

WBOY
WBOY原創
2016-05-25 16:53:231999瀏覽

下面中要在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