Markdown
Markdown API
Markdown API
| Method Name | Description | 
|---|---|
| 
										showEditor() | Toggle on the editor visibility | 
| 
										showPreview() | Toggle on the preview visibility | 
| 
										hidePreview() | Toggle off the editor visibility | 
| 
										isDirty() | Check the editor content state, return true if the original content was changed | 
| 
										getContent() | Get the editor content | 
| 
										setContent(string content) | Set the editor content | 
| 
										findSelection(string words) | Find some words/sentence within the editor and returned selection object(containing word position and other useful information). | 
| 
										getSelection() | Get the current selected chunk of words within the editor. | 
| 
										setSelection(int start, int end) | Tell the editor to select a span of words from 
										startto
										end. | 
| 
										replaceSelection(string content) | Replace the current selected chunk of words within the editor with any content. | 
| 
										getNextTab() | Get the next tab memory. Returned selection object(containing word position and other useful information). | 
| 
										setNextTab(int start, int end) | Tell the editor to select a span of words from 
										startto
										endat next
										tabkeypress event. | 
| 
										enableButtons(string name) | Enabled a button by 
										namethat described in
										buttonsor
										additionalButtonsarrays. Passing
										allwill enabled all buttons. | 
| 
										disableButtons(string name) | Disabled a button by 
										namethat described in
										buttonsor
										additionalButtonsarrays. Passing
										allwill disabled all buttons. | 
 
  
  
						