Permalink
Browse files

Merge pull request #2 from ankitgaurav/master

Made few patches and corrected some typos
  • Loading branch information...
2 parents 9ad9565 + 21d5f7a commit 9bd0b453908e85008376df63c9dd1efe546834ca @hackerwins hackerwins committed on GitHub Jul 9, 2016
Showing with 3 additions and 41 deletions.
  1. +1 −8 README.md
  2. +0 −1 summernote-meteor-example.css
  3. +1 −9 summernote-meteor-example.html
  4. +1 −23 summernote-meteor-example.js
View
@@ -5,11 +5,4 @@ Feel free to send a pull request.
* "summernote": "^0.8.1"
## installation
-
-```
-# meteor is need; you might have this installed already
-curl https://install.meteor.com/ | sh
-
-# start meteor
-meteor
-```
+meteor add summernote:summernote
@@ -1 +0,0 @@
-/* CSS declarations go here */
@@ -3,18 +3,10 @@
</head>
<body>
- <h1>Welcome to Meteor!</h1>
-
- {{> hello}}
+ <h1>Welcome to Meteor Summernote Example</h1>
{{> editor}}
</body>
-<template name="hello">
- <div class="summernote">hello world</div>
- <button>Click Me</button>
- <p>You've pressed the button {{counter}} times.</p>
-</template>
-
<template name="editor">
<div class="summernote">Hello Summernote</div>
</template>
@@ -1,29 +1,7 @@
if (Meteor.isClient) {
- // counter starts at 0
- Session.setDefault('counter', 0);
-
- Template.hello.helpers({
- counter: function () {
- return Session.get('counter');
- }
- });
-
- Template.hello.events({
- 'click button': function () {
- // increment the counter when button is clicked
- Session.set('counter', Session.get('counter') + 1);
- }
- });
-
Template.editor.rendered = function () {
- $('.summernote').summernote({
+ $('#summernote').summernote({
height: 200
});
};
}
-
-if (Meteor.isServer) {
- Meteor.startup(function () {
- // code to run on server at startup
- });
-}

0 comments on commit 9bd0b45

Please sign in to comment.