发表于 2017-3-20 09:32:42

php 配置 fckeditor

<html>
<body>
<script>
function aa(){
//alert(FCKeditorAPI.GetInstance('FCKeditor1').GetXHTML( true ));
if(FCKeditorAPI.GetInstance('FCKeditor1').GetXHTML( true ) == "" ||
FCKeditorAPI.GetInstance('FCKeditor1').GetXHTML( true ) == null ){
alert("内容为空!!!");
}
}
</script>
CONTENT:
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;//建立对象
$oFCKeditor->BasePath = 'FCKeditor/' ;//FCKeditor所在的位置
$oFCKeditor->ToolbarSet = 'Basic' ;//工具按钮
$oFCKeditor->Value = "值";//给fck赋值 一定是
$oFCKeditor->Create上边            
$oFCKeditor->Create('EditorDefault', '60%',150) ;
?>

<input id="submit" name="submit" type="submit"      value="확인" />
</body>
</html>
php获取值:$_POST;
页: [1]
查看完整版本: php 配置 fckeditor