From aada5dbc179c06f2eb04db1d5651bb48bf32ec82 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Tue, 31 Jul 2012 13:26:48 -0700 Subject: Fix: Enabling preview from code view Added a temp patch to enable preview from code view when viewing HTML document (with design view). This does not save external assets, so CSS and components will not be saved. --- js/document/models/base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/document') diff --git a/js/document/models/base.js b/js/document/models/base.js index a73b8b20..d51806b2 100755 --- a/js/document/models/base.js +++ b/js/document/models/base.js @@ -323,7 +323,8 @@ exports.BaseDocumentModel = Montage.create(Component, { } } } else if (this.currentView === this.views.code) { - //TODO: Add save logic for code view + //TODO: Add save logic for code view (this is a temp patch) + this.save(libCopyCallback); } else { //TODO: Error handle } -- cgit v1.2.3