主题 : jeecms框架文本输入%不能保存
级别: 白丁
UID: 143989
积分:7 加为好友
威望: 0 精华: 0
主题:1 回复:1
注册时间:2023-12-25
在线时长:0.01
1#   发表于:2023-12-25 10:52:31  IP:221.64.*.*
 var html =
                (ie && browser.version < 9 ? "" : "<!DOCTYPE html>") +
                "<html xmlns='http://www.w3.org/1999/xhtml' class='view' >" +
                "<head>" +
                "<style type='text/css'>" +
                // 设置四周的留白
                ".view { padding: 0px; word-wrap: break-word; cursor: text; height: 98%; overflow: auto; box-sizing: border-box; }" +
                // 设置默认字体和字号
                // font-family不能随便改,在safari下fillchar会有解析问题
                "body { padding: 10px; font-family: sans-serif; font-size: 16px; width: fit-content; margin: 0; min-width: 100%; box-sizing: border-box; }" +
                // 设置占位符
                "body.empty:before { content: attr(placeholder); position: absolute; color: #999; }" +
                // 设置段落间距
                "p { margin: 5px 0; }" +
                "</style>" +
                (options.iframeCssUrl
                    ? "<link rel='stylesheet' type='text/css' href='" +
                    utils.unhtml(options.iframeCssUrl) +
                    "'/>"
                    : "") +
                (options.initialStyle
                    ? "<style>" + options.initialStyle + "</style>"
                    : "") +
                "</head>" +
                "<body>" + encodedContent + "</body>" +
                "<script type='text/javascript' " +
                (ie ? "defer='defer'" : "") +
                " id='_initialScript'>" +
                "setTimeout(function(){editor = window.parent.UE.instants['ueditorInstant" +
                me.uid +
                "'];editor._setup(document);},0);" +
                "var _tmpScript = document.getElementById('_initialScript');_tmpScript.parentNode.removeChild(_tmpScript);" +
                "</script>" +
                (options.iframeJsUrl
                    ? "<script type='text/javascript' src='" +
                    utils.unhtml(options.iframeJsUrl) +
                    "'></script>"
                    : "") +
                "</html>";
此代码 body中输入%就不能保存 应该如何解决呢
级别: 总版主
UID: 10736
积分:148371 加为好友
威望: 205 精华: 42
主题:287 回复:126129
注册时间:2010-09-08
在线时长:15.2
2#   发表于:2023-12-25 11:09:34  IP:183.221.*.*
您使用的是什么版本
路漫漫其修远兮,吾将上下而求索!
级别: 白丁
UID: 143989
积分:7 加为好友
威望: 0 精华: 0
主题:1 回复:1
注册时间:2023-12-25
在线时长:0.01
3#   发表于:2023-12-25 14:34:27  IP:221.64.*.*
回复第2楼   不知道啥版本 就是编辑 有问题 %输入就不能显示  %25才行 
级别: 总版主
UID: 10736
积分:148371 加为好友
威望: 205 精华: 42
主题:287 回复:126129
注册时间:2010-09-08
在线时长:15.2
4#   发表于:2023-12-25 14:44:47  IP:183.221.*.*
您问问是什么版本的,有的老版本已经停止维护了
路漫漫其修远兮,吾将上下而求索!
1 共1页