mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 02:37:59 +08:00
修复导出pdf无法识别上传的图片的问题。
This commit is contained in:
@@ -1083,6 +1083,8 @@ func RecursiveFun(parent_id int, prefix, dpath string, c *DocumentController, bo
|
|||||||
c.Abort("500")
|
c.Abort("500")
|
||||||
}
|
}
|
||||||
//beego.Info(fpath,html)
|
//beego.Info(fpath,html)
|
||||||
|
html = strings.Replace(html,"<img src=\"/uploads","<img src=\""+ c.BaseUrl() +"/uploads",-1)
|
||||||
|
|
||||||
f.WriteString(html)
|
f.WriteString(html)
|
||||||
f.Close()
|
f.Close()
|
||||||
|
|
||||||
|
@@ -17,15 +17,11 @@
|
|||||||
<link href="{{.BaseUrl}}/static/css/jstree.css" rel="stylesheet">
|
<link href="{{.BaseUrl}}/static/css/jstree.css" rel="stylesheet">
|
||||||
{{if eq .Model.Editor "markdown"}}
|
{{if eq .Model.Editor "markdown"}}
|
||||||
<link href="{{.BaseUrl}}/static/editor.md/css/editormd.preview.css" rel="stylesheet">
|
<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}}
|
{{else}}
|
||||||
<link href="{{.BaseUrl}}/static/highlight/styles/zenburn.css" rel="stylesheet">
|
<link href="{{.BaseUrl}}/static/highlight/styles/zenburn.css" rel="stylesheet">
|
||||||
{{end}}
|
{{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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="m-manual manual-reader">
|
<div class="m-manual manual-reader">
|
||||||
|
Reference in New Issue
Block a user