mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
修复导出pdf无法识别上传的图片的问题。
This commit is contained in:
parent
62fc4d09a1
commit
6f9367941d
@ -1083,6 +1083,8 @@ func RecursiveFun(parent_id int, prefix, dpath string, c *DocumentController, bo
|
||||
c.Abort("500")
|
||||
}
|
||||
//beego.Info(fpath,html)
|
||||
html = strings.Replace(html,"<img src=\"/uploads","<img src=\""+ c.BaseUrl() +"/uploads",-1)
|
||||
|
||||
f.WriteString(html)
|
||||
f.Close()
|
||||
|
||||
|
@ -17,15 +17,11 @@
|
||||
<link href="{{.BaseUrl}}/static/css/jstree.css" rel="stylesheet">
|
||||
{{if eq .Model.Editor "markdown"}}
|
||||
<link href="{{.BaseUrl}}/static/editor.md/css/editormd.preview.css" rel="stylesheet">
|
||||
<link href="{{.BaseUrl}}/static/prettify/themes/atelier-estuary-dark.min.css" rel="stylesheet">
|
||||
<link href="{{.BaseUrl}}/static/css/markdown.preview.css" rel="stylesheet">
|
||||
{{else}}
|
||||
<link href="{{.BaseUrl}}/static/highlight/styles/zenburn.css" rel="stylesheet">
|
||||
{{end}}
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="{{.BaseUrl}}/static/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="{{.BaseUrl}}/static/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="m-manual manual-reader">
|
||||
|
Loading…
Reference in New Issue
Block a user