设为首页
加为收藏
联系我们
  • 电子商务
  • 软件网络
  • 看天下
  • 营销财经
  • 关闭导航
  • 网络编程
  • 数据库类
  • 关闭导航
  • 网络编程
  • 社交礼仪
  • 数据库类
  • 人文地理
  • 关闭导航
  • 编程工具
  • 电子书籍
  • 关闭导航
  • 生活休闲
  • 演讲讲座
  • 视频教程
  • 经典影视
  • 关闭导航
  • 您的位置: 首页 > 入门教程 > 网络编程 > PHP

    FCKeditor 初始 配置 和 使用方法

    时间: 2008-09-10  信息来源: 博客园  作者: 编辑整理  点击数:

    内容提示:FCKeditor是目前最为流行的网页在线文本编辑器之一,它支持多种脚本编程语言和支持多国语言。 本文将介绍如何配置和使用FCKeditor.

    背景知识

            FCKeditor是一个专门使用在网页上属于开放源代码的所见即所得文字编辑器。它志于轻量化,不需要太复杂的安装步骤即可使用。它可和PHPJavaScriptASPASP.NETColdFusionJava、以及ABAP等不同的编程语言相结合。“FCKeditor”名称中的“FCK” 是这个编辑器的作者的名字Frederico Caldeira Knabben的缩写。

      FCKeditor 相容于绝大部分的网页浏览器,像是 : Internet Explorer 5.5+ (Windows)、Mozilla Firefox 1.0+、Mozilla 1.3+ 和 Netscape 7+。在未来的版本也将会加入对 Opera 的支援。

             本文范例使用FCKeditor 的版本是2.1,不过现在已经有 FCKeditor 2.3.2 released 版本
    了,你可以到他的官方网站上去下载 http://www.FCKeditor.net/。

        本文介绍的是关于 php 的配置方法,其他语言的配置方法是和它一样的。

        假设网站的目录为:

        /www
        /index.php
        /inc
        /FCKeditor

    一、调用 FCKeditor 的两种方法 

    1、通过创建实例 

        在这里只写调用它的代码了,网站的其他代码当然由你自己写了,把下面的代码加在需
    要编辑器的地方:

      <?php 
      include_once("FCKeditor/fckeditor.php");//引用 FCKeditor.php 这个文件 
     $FCKeditor=new FCKeditor('welefen');//创建 FCKeditor 对象的实例 
     $FCKeditor->BasePath='FCKeditor/';//FCKeditor 所在的位置,这里它的位置就是
     'FCKeditor/'; 
     $FCkeditor->ToolbarSet='Default'; //工具按钮设置 
     $FCKeditor->Width='100%'; //设置它的宽度 
     $FCKeditor->Height='300px'; //设置它的高度 
     $FCkeditor->Create(); 
     ?> 

    2、通过 iframe 调用创建 

         在你认为该加的地方加上 :

     <INPUT id=content style="DISPLAY: none" type=hidden name="welefen"> 
     <INPUT id=content___Config style="DISPLAY: none" type=hidden> 
     <IFRAME id=content___Frame 
      src="FCKeditor/editor/fckeditor.html?InstanceName=welefen&amp;Toolbar=Defaul
     t" frameBorder=0 width=100% scrolling=no height=300> 
     </IFRAME> 


     
     1 2 3  下一页
    Tags: FCKeditor,配置,安装,使用 责任编辑:aboutstudy
     
      关于我们 友情链接 网站地图 广告服务 联系我们 管理登陆  
      鄂ICP备07014143号  
      Powered by EmpireCMS 5.0  
      Template designed by 直来直往.
      联系信息: QQ 365931563 Email:jiangtian001@sina.com  
      ©CopyRight 2007-2008, SKDE.CN, Inc. All Rights Reserved