色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

php下安裝配置fckeditor編輯器的方法

一、php調(diào)用fckeditor方法。
二、JS調(diào)用fckeditor方法。
復(fù)制代碼 代碼如下:
<?php
require_once(PATH_PRE.”fckeditor.php”); // 包含fckeditor類,
$oFCKeditor = new FCKeditor('content') ; //創(chuàng)建一個fckeditor對象,表單的名稱為content
$oFCKeditor->BasePath=”../fckeditor/”; //編輯器所在目錄
$oFCKeditor->ToolbarSet=”YiyunNET”; // 默認(rèn)編輯器工具欄有Basic(基本工具) Default(所有工具)Soft(分一欄可以插入圖片視頻 ) Renpeng (可以上傳圖片視頻分為兩欄 ) Full (三欄)
$oFCKeditor->Height='100%'; //高度
$oFCKeditor->Width='100%'; //寬度
$oFCKeditor->Value=”"; //初始值 還可設(shè)置以下部分(”=”包含部分),并非必須:
$oFCKeditor->Config['SkinPath'] = ‘../editor/skins/silver/'; // 設(shè)置編輯器皮膚共有三種皮膚default
$oFCKeditor->Create(); //在要顯示編緝器的地方輸出變量$myeditor的值就行了
?>


FCKeditor js調(diào)用方法一
復(fù)制代碼 代碼如下:
<script src=”fckeditor/fckeditor.js”></script>
<script type=”text/Javascript”>
var oFCKeditor = new FCKeditor( ‘Content' ) ;
oFCKeditor.BasePath = ‘fckeditor/' ;
oFCKeditor.ToolbarSet = ‘Basic' ;
oFCKeditor.Width = ‘100%' ;
oFCKeditor.Height = ‘400′ ;
oFCKeditor.Value = ” ;
oFCKeditor.Create() ;
</script>

FCKeditor js調(diào)用方法二
復(fù)制代碼 代碼如下:
<script src=”fckeditor/fckeditor.js”></script>
<script type=”text/Javascript”>
function showFCK(){
var oFCKeditor = new FCKeditor('Content') ;
oFCKeditor.BasePath = ‘fckeditor/' ;
oFCKeditor.ToolbarSet = ‘Basic' ;
oFCKeditor.Width = ‘100%' ;
oFCKeditor.Height = ‘200′ ;
oFCKeditor.Value = ” ;
oFCKeditor.ReplaceTextarea() ;
document.getElementByIdx(”btnShow”).disabled = ‘true';
document.getElementByIdx(”btnShow”).style.display = ‘none';
}
</script>
<textarea name=”Content”></textarea>
<input id=btnShow style=”display:inline” type=button onclick=”showFCK()”>

php技術(shù)php下安裝配置fckeditor編輯器的方法,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 凉城县| 买车| 凭祥市| 临猗县| 海城市| 杨浦区| 林州市| 资中县| 大邑县| 资兴市| 分宜县| 叶城县| 临清市| 景谷| 潼南县| 濮阳县| 东乡族自治县| 虎林市| 安吉县| 华坪县| 姜堰市| 临桂县| 剑川县| 巴南区| 乐陵市| 彭泽县| 应用必备| 凌源市| 平顺县| 郁南县| 九江县| 边坝县| 英德市| 喀喇| 桦甸市| 梁平县| 旬邑县| 香格里拉县| 巧家县| 正安县| 扎兰屯市|