From 5b8f07081182b2d11c327fcfc2d0f36a09073f0b Mon Sep 17 00:00:00 2001 From: Michal Wanat Date: Sun, 13 Dec 2015 14:35:39 +0100 Subject: [PATCH] update summernote + fix issue #20 --- lib/client/autoform-summernote.js | 2 +- lib/client/templates.js | 4 ++-- package.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/client/autoform-summernote.js b/lib/client/autoform-summernote.js index 2dac4b7..77ca065 100644 --- a/lib/client/autoform-summernote.js +++ b/lib/client/autoform-summernote.js @@ -1,6 +1,6 @@ AutoForm.addInputType('summernote', { template: 'afSummernote', valueOut: function() { - return this.code(); + return this.summernote('code'); } }); diff --git a/lib/client/templates.js b/lib/client/templates.js index d9eef51..b7527d9 100644 --- a/lib/client/templates.js +++ b/lib/client/templates.js @@ -18,11 +18,11 @@ Template.afSummernote.rendered = function() { $editor.summernote(options); this.autorun(function () { - $editor.code(self.value.get()); + $editor.summernote('code', self.value.get()); }); $editor.closest('form').on('reset', function() { - $editor.code(''); + $editor.summernote('code', ''); }); }; diff --git a/package.js b/package.js index 7f8260d..2476ed3 100644 --- a/package.js +++ b/package.js @@ -1,7 +1,7 @@ Package.describe({ name: 'mpowaga:autoform-summernote', summary: 'Summernote editor for aldeed:autoform', - version: '0.4.2', + version: '0.4.3', git: 'https://github.com/mpowaga/meteor-autoform-summernote' }); @@ -12,8 +12,8 @@ Package.onUse(function(api) { 'templating', 'underscore', 'reactive-var', - 'aldeed:autoform@5.1.2', - 'summernote:standalone@0.6.10' + 'aldeed:autoform@5.8.0', + 'summernote:standalone@0.7.0' ], 'client'); api.addFiles([