我在asp.net的网站中测试使用kindeditor,以下是在.aspx中的代码- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Sysadmin_Default2" validateRequest="false" %>
- <!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 id="Head1" runat="server">
- <title>无标题页</title>
- <script type="text/javascript" charset="utf-8" src="../kindeditor/kindeditor.js"></script>
- <script type="text/javascript">
- KE.show({
- id: 'content_1',
- cssPath: './index.css'
- });
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <textarea runat="server" id="content_1" name="content" style="width:700px;height:300px;visibility:hidden;"></textarea>
- </div>
- </form>
- </body>
- </html>
这个可以正常的显示出编辑器,但是当我把这个页面放入母版页的时候编辑器就看不到了,页面其它元素显示正常以下是在母版页中的代码: - <%@ Page Language="C#" MasterPageFile="~/Sysadmin/MasterPage.master" AutoEventWireup="true"
- CodeFile="Default2.aspx.cs" Inherits="Sysadmin_Default2" Title="无标题页" ValidateRequest="false" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
- <script type="text/javascript" charset="utf-8" src="../kindeditor/kindeditor.js"></script>
- <script type="text/javascript">
- KE.show({
- id: 'content_1',
- cssPath: './index.css'
- });
- </script>
- <textarea runat="server" id="Textarea1" name="content" style="width:700px;height:300px;visibility:hidden;"></textarea>
- </asp:Content>
请大家帮帮忙看看是不是我哪个地方写错了 文件路径:
|