From 5f2ad33ffa2d2e0831c4b07856c54fb972401cb4 Mon Sep 17 00:00:00 2001 From: life Date: Sat, 24 Oct 2015 15:30:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=AF=BC=E5=87=BAhtml?= =?UTF-8?q?=E6=88=90=E5=8A=9F,=20=E5=BE=85=E6=B7=BB=E5=8A=A0=E5=88=B0noteb?= =?UTF-8?q?ook=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node_modules/note.js | 3 + note.html | 3 +- public/js/app/note.js | 10 ++- public/js/common.js | 16 +++- public/plugins/export_html/plugin.js | 127 +++++++++++++++++++++------ public/plugins/export_pdf/plugin.js | 12 ++- public/themes/basic.less | 17 +++- public/themes/default.css | 15 +++- 8 files changed, 167 insertions(+), 36 deletions(-) diff --git a/node_modules/note.js b/node_modules/note.js index 81edc79b..fc4bc613 100644 --- a/node_modules/note.js +++ b/node_modules/note.js @@ -1682,6 +1682,9 @@ var Note = { if(!serverNoteId) { callback({Ok: false, Msg: 'noteNotExists'}); } else { + if (!Api) { + Api = require('api'); + } Api.exportPdf(serverNoteId, callback); } }) diff --git a/note.html b/note.html index d0b53b33..c0f78fbc 100755 --- a/note.html +++ b/note.html @@ -601,7 +601,7 @@ function log(o) {