From 6800c51f13494c968e1a0f0793c0f5ea18c7bac8 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Thu, 9 Oct 2014 18:21:17 +0200 Subject: [PATCH] fix update/upload --- client/client.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.coffee b/client/client.coffee index d8ec21b..72b4154 100644 --- a/client/client.coffee +++ b/client/client.coffee @@ -125,7 +125,7 @@ Template.editor.events return notify msg: "Empty documents are not valid." if @_id then docs.update @_id, $set: { title: t.find('#title').value - text: t.find('#editor').value + text: MandrillAce.getInstance().value() showTitle: $('#show-title').is(':checked') public: $('#make-public').is(':checked') }, (err) => @@ -135,7 +135,7 @@ Template.editor.events Router.go 'doc', _id: @_id else docs.insert { title: t.find('#title').value - text: t.find('#editor').value + text: MandrillAce.getInstance().value() showTitle: $('#show-title').is(':checked') public: $('#make-public').is(':checked') }, (err,id) ->