mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-10-25 02:09:09 +08:00
修复类文本类型HTML文件预览的bug
This commit is contained in:
@@ -39,10 +39,10 @@
|
|||||||
*加载普通文本
|
*加载普通文本
|
||||||
*/
|
*/
|
||||||
function loadText() {
|
function loadText() {
|
||||||
var textData = Base64.decode($("#textData").val())
|
var base64data = $("#textData").val()
|
||||||
var textPreData = "<pre style='background-color: #FFFFFF;border:none'>" + textData + "</pre>";
|
var textData = Base64.decode(base64data);
|
||||||
|
var textPreData = "<xmp style='background-color: #FFFFFF;overflow-y: scroll;border:none'>" + textData + "</xmp>";
|
||||||
$("#text").html(textPreData);
|
$("#text").append(textPreData);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user