mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
Support set url path and use relative url, move raphael to bower and fixed minor issue in history
This commit is contained in:
parent
3f2f063e9b
commit
b2b1be3dda
22 changed files with 222 additions and 198 deletions
|
@ -402,10 +402,11 @@ function exportToHTML(view) {
|
|||
var tocAffix = $('#toc-affix').clone();
|
||||
tocAffix.find('*').removeClass('active');
|
||||
//generate html via template
|
||||
$.get('/css/html.min.css', function (css) {
|
||||
$.get('/views/html.hbs', function (data) {
|
||||
$.get(serverurl + '/css/html.min.css', function (css) {
|
||||
$.get(serverurl + '/views/html.hbs', function (data) {
|
||||
var template = Handlebars.compile(data);
|
||||
var context = {
|
||||
url: serverurl,
|
||||
title: title,
|
||||
css: css,
|
||||
html: src[0].outerHTML,
|
||||
|
@ -657,7 +658,7 @@ emojify.setConfig({
|
|||
elements: ['script', 'textarea', 'a', 'pre', 'code', 'svg'],
|
||||
classes: ['no-emojify']
|
||||
},
|
||||
img_dir: '/vendor/emojify/images',
|
||||
img_dir: serverurl + '/vendor/emojify/images',
|
||||
ignore_emoticons: true
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue