主题: kindeditor 加载时出错 急
作者: 兜兜, 发布日期: 2011-05-12 09:55:49, 浏览数: 4304

在m模板页下使用kindeditor :

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Default.Master" AutoEventWireup="true" CodeBehind="Chat.aspx.cs" Inherits="WebAppClient.Chat.chat" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CTop" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CMain" runat="server">  


 <input type="hidden" name="content" id="content" runat="server" />
 <script type="text/javascript" src="../kindeditor/KindEditor.js"></script>
<script type="text/javascript">
    var editor = new KindEditor("editor");
    editor.hiddenName = "content";
    editor.skinPath = "../kindeditor/skins/default/";
    editor.iconPath = "../kindeditor/icons/";
    editor.imageAttachPath = "../kindeditor/attached/";
    editor.imageUploadCgi = "../kindeditor/upload_cgi/upload.asp";
    editor.cssPath = "../editor2/common.css";
    editor.editorType = "simple";
    editor.editorWidth = "400px";
    editor.editorHeight = "150px";
    editor.show();
</script>
<input type="button" value="发送" style="height: 22px; width: 80px;" id="button1"
                    onclick="chatSend();" />

 

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CFoot" runat="server">
</asp:Content>

当运行页面的时候就出现下面的错误:

Microsoft JScript 运行时错误: 'document.getElementsByName(...).0.value' 为空或不是对象

请高手帮帮忙!

发表新帖 发表回复