aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/html-document.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-12 21:03:39 -0800
committerJose Antonio Marquez2012-02-12 21:03:39 -0800
commit1b84b4549934578caaad38ef14b34cba35e2622a (patch)
tree60081692739684ae6746af343c9257a538cf911d /js/io/document/html-document.js
parentb1fc4f84d92efeaa33ec239b662235c9e8218d0c (diff)
downloadninja-1b84b4549934578caaad38ef14b34cba35e2622a.tar.gz
File Save (with CSS styles)
Temp fix for saving styles in <style> of HTML document.
Diffstat (limited to 'js/io/document/html-document.js')
-rwxr-xr-xjs/io/document/html-document.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/io/document/html-document.js b/js/io/document/html-document.js
index 2ece76c5..99bf4576 100755
--- a/js/io/document/html-document.js
+++ b/js/io/document/html-document.js
@@ -471,8 +471,9 @@ var HTMLDocument = exports.HTMLDocument = Montage.create(baseDocumentModule.Base
471 save: { 471 save: {
472 enumerable: false, 472 enumerable: false,
473 value: function () { 473 value: function () {
474 //TODO: Add code view logic 474 //console.log(this._styles, this._stylesheets);
475 return {mode: 'html', document: this._userDocument, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; 475 //TODO: Add code view logic and also styles for HTML
476 return {mode: 'html', document: this._userDocument, style: this._styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML};
476 } 477 }
477 } 478 }
478 //////////////////////////////////////////////////////////////////// 479 ////////////////////////////////////////////////////////////////////