Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
梁杰芳
slm-fileview
Commits
4747ee93
Commit
4747ee93
authored
Dec 29, 2020
by
kl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复类文本类型HTML文件预览的bug
parent
5ec53c4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
txt.ftl
server/src/main/resources/web/txt.ftl
+4
-4
No files found.
server/src/main/resources/web/txt.ftl
View file @
4747ee93
...
...
@@ -39,10 +39,10 @@
*加载普通文本
*/
function
loadText
()
{
var
textData
=
Base64
.
decode
(
$
(
"#textData"
).
val
()
)
var
text
PreData
=
"<pre style='background-color: #FFFFFF;border:none'>"
+
textData
+
"</pre>"
;
$
(
"#text"
).
html
(
textPreData
);
var
base64data
=
$
(
"#textData"
).
val
(
)
var
text
Data
=
Base64
.
decode
(
base64data
)
;
var
textPreData
=
"<xmp style='background-color: #FFFFFF;overflow-y: scroll;border:none'>"
+
textData
+
"</xmp>"
;
$
(
"#text"
).
append
(
textPreData
);
}
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment