Skip to content

Commit

Permalink
Improve English some more
Browse files Browse the repository at this point in the history
  • Loading branch information
dandv committed Nov 26, 2014
1 parent b5f84af commit 775c64d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,26 @@ Include the following code in the `<head>` tag of your HTML:
```

#### 2. target elements
And place `div` tag to somewhere in the `body` tag. This element will be placed by the visual representation of the summernote.

Then place a `div` tag somewhere in the `body` tag. This element will be replaced with the summernote editor.

```html
<div id="summernote">Hello Summernote</div>
```

#### 3. summernote
Finally, run script after document ready.

Finally, run this script after the DOM is ready:

```javascript
$(document).ready(function() {
$('#summernote').summernote();
});
```

### API
Get the HTML `code` if you need it:

`code` - get the HTML source code underlying the text in the editor:

```javascript
var sHTML = $('#summernote').code();
Expand Down

0 comments on commit 775c64d

Please sign in to comment.