File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -251,10 +251,10 @@ This object contains the strings that can be translated
251
251
### Methods
252
252
253
253
The methods are invoked passing the name of the method as string.
254
- Only one method is available:
255
254
256
255
``` javascript
257
256
var content = $ (' #myEditor' ).markdownEditor (' content' ); // Returns the content of the editor
257
+ $ (' #myEditor' ).markdownEditor (' setContent' , content); // Sets the content of the editor
258
258
```
259
259
260
260
## License
Original file line number Diff line number Diff line change 201
201
content : function ( ) {
202
202
var editor = ace . edit ( this . find ( '.md-editor' ) [ 0 ] ) ;
203
203
return editor . getSession ( ) . getValue ( ) ;
204
+ } ,
205
+ setContent : function ( str ) {
206
+ var editor = ace . edit ( this . find ( '.md-editor' ) [ 0 ] ) ;
207
+ editor . setValue ( str ) ;
204
208
}
205
209
} ;
206
210
You can’t perform that action at this time.
0 commit comments