天天看点

fckeditor js 调用

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="aspx_test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title>fckeditor</title>

    <script type="text/javascript" src="/fckeditor/fckeditor.js"></script>

</head>

<body>

    <form id="form1" runat="server">

     <textarea id="content" name="content"></textarea>

    <div>

                       <script type="text/javascript">

                       var oFCKeditor = new FCKeditor("content");

                       oFCKeditor.BasePath ="/fckeditor/";

                       oFCKeditor.Height = 200;

                       oFCKeditor.ToolbarSet = "Basic"; 

                       oFCKeditor.ReplaceTextarea();

                       </script>

    </div>

    </form>

</body>

</html>