contented: update integration to 1.1.0
This commit is contained in:
parent
a260d102ee
commit
262c3ba903
@ -52,14 +52,13 @@ func (this *WikiServer) routeModify(w http.ResponseWriter, r *http.Request, arti
|
||||
`
|
||||
if len(this.opts.ContentedServer) > 0 {
|
||||
content += `
|
||||
<script type="text/javascript" src="` + this.opts.ContentedServer + `jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="` + this.opts.ContentedServer + `sdk.js"></script>
|
||||
| <a href="javascript:;" id="open-contented-uploader">upload...</a>
|
||||
<script type="text/javascript">
|
||||
$("#open-contented-uploader").on('click', function() {
|
||||
contented.init("#contentctr", function(items) {
|
||||
for (var i = 0; i < items.length; ++i) {
|
||||
$("#contentctr textarea").append(" " + "` + this.opts.ContentedServer + `get/" + items[i] + " ");
|
||||
$("#contentctr textarea").append(" " + contented.getPreviewURL(items[i]) + " ");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user