ITPub博客

首页 > > > Ueditor iis 问题

Ueditor iis 问题

作者:choubou 时间:2019-10-12 10:51:26 0 删除 编辑

不知道什么原因,配置好后编辑器在vs中能够正常显示和使用,但是添加到iis中只是显示了一个文本框,看来看去我的路径应该是内问题的才对,找不到原因,求解。

aspx里面的代码

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="BusinessRule.Web.WebForm1" %>

<!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 src="ueditor/ueditor.config.js" type="text/javascript"></script>

    <script src="ueditor/ueditor.all.min.js" type="text/javascript"></script>

    <link href="ueditor/themes/default/css/ueditor.css" rel="stylesheet" type="text/css" />

</head>

<body>

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

    <div>

        <textarea id="txteditor" name="txteditor" runat="server" cols="20" rows="2" style="width: 800px;

            height: 500px">

</textarea>

        <script type="text/javascript">

            var editor = new baidu.editor.ui.Editor();

            editor.render('txteditor');

            UE.getEditor('txteditor');

        </script>

        <asp:Button ID="Button1" runat="server" Text="Button"  />

    </div>

    </form>

</body>

</html>

ueditor.config.js里面的代码

var URL = window.UEDITOR_HOME_URL || "/ueditor/"

在vs中查看显示的是

<ignore_js_op>

 

而在本地的iis中就变成这个样子了

<ignore_js_op>

 

有没有知道原因的帮助回答一下

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4548/viewspace-3142701/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-10-08

  • 博文量
    175
  • 访问量
    10709