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

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

WBOY
Release: 2016-05-25 16:53:23
Original
2008 people have browsed it

下面中要在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()">
Copy after login

今天我们要讲了是关于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() ; 
?>
Copy after login

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


文章链接:

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template