Skip to content

Commit 4a9d8b8

Browse files
committed
Merge branch 'feature/textarea' into develop
2 parents ba60b82 + 9eca31c commit 4a9d8b8

8 files changed

+48
-33
lines changed

README.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Optionally, include the script of Bootstrap to enable tooltips:
5050
<script src="bower_components/bootstrap-markdown-editor/dist/js/bootstrap-markdown-editor.js"></script>
5151
```
5252

53-
Create a div for the editor with optional content in markdown format:
53+
Create a textarea for the editor with optional content in markdown format:
5454

5555
```html
56-
<div id="myEditor"># Test</div>
56+
<textarea name="text" id="myEditor"># Test</textarea>
5757
```
5858

5959
Initialize the editor:
@@ -62,12 +62,6 @@ Initialize the editor:
6262
$('#myEditor').markdownEditor();
6363
```
6464

65-
To get the content in any moment:
66-
67-
```javascript
68-
var markdownContent = $('#myEditor').markdownEditor('content');
69-
```
70-
7165
## Implementing the preview
7266

7367
You have to implement the parsing of the Markdown.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Bootstrap Markdown Editor",
33
"description": "Markdown editor for Bootstrap with preview, image upload support, shortcuts and other features.",
4-
"version": "1.3.0",
4+
"version": "2.0.0",
55
"authors": [
66
"Ignacio de Tomás <nacho@inacho.es>"
77
],

dist/css/bootstrap-markdown-editor.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)