文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>FCKeditor的javascript的创建和使用方法(一)

FCKeditor的javascript的创建和使用方法(一)

时间:2007-08-07  来源:sdwsyjp

The "JavaScript Integration Module" is the client side option to include FCKeditor in your web pages. It is quite easy to use and configure.

Javascript集成组件能够将FCKeditor嵌入到你的WEB应用界面,使用和配置都很简单! 

Step 1

Suppose that the editor is installed in the /FCKeditor/ path of your web site. The first thing to do is to include the "JavaScript Integration Module" scripts inside the <HEAD> of your page, just like this:

第一件事情就是将fckeditor.js引入到web应用页面,把下列语句加入到<head></head>中间

 

Step 2

Now the FCKeditor class is available and ready to use. There are two ways to create an FCKeditor in your page:

现在,FCKeditor类已经可以取得并使用,这里有两种方法可以在WEB应用页面生成FCKeditor。

Method 1: The inline method (preferred): Go to the body of your page, to the place you want the editor to be (usually inside a form) and place the following script there:

方法一:将下列语句添加到你希望加入FCKeditor的地方,这个地方通常是一个form表单.

Method 2: The TEXTAREA replacement method: In the "onload" method of your page, add the following code to replace an existing TEXTAREA in the page:

方法二:

<html> 
<head>


</head>
<body>
<textarea id="MyTextarea" name="MyTextarea">
This is <b>the</b> initial value.</textarea>
</body>
</html>

 

Step 3

The editor is now ready to be used. Just open the page in your browser to see it at work.

现在,FCKeditor已经可以使用了! 

下一篇将讲解FCKeditor在javascript中的配置,
水平有限,翻译的不太好,不求“雅”,只求“信”,只求“达”!~

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载