Skip to content

Commit

Permalink
update summernote + fix issue #20
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalW committed Dec 13, 2015
1 parent 2a174a1 commit 5b8f070
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/client/autoform-summernote.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AutoForm.addInputType('summernote', {
template: 'afSummernote',
valueOut: function() {
return this.code();
return this.summernote('code');
}
});
4 changes: 2 additions & 2 deletions lib/client/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '');
});
};

Expand Down
6 changes: 3 additions & 3 deletions package.js
Original file line number Diff line number Diff line change
@@ -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'
});

Expand All @@ -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([
Expand Down

0 comments on commit 5b8f070

Please sign in to comment.