MarkdownEditorSimpleInterop Class
MarkdownMonster.MarkdownEditorSimpleInterop
Class Members
Member | Description | |
---|---|---|
![]() |
Constructor | |
![]() |
GetKeyBindingsJson | Return keyboard bindings object as a JSON string so we can bind inside of the editor JavaScript
public string GetKeyBindingsJson()
|
![]() |
GetSelection | Gets the current text of the selection in the editor. If nothing is selected (ie. just a cursor) an empty string is returned.
public Task
|
![]() |
GetValue | Retrieves the Editor value
public Task
|
![]() |
GotFocus |
public void GotFocus()
|
![]() |
IsDirty | This is multi-purpose function that: Retrieves the text from the editor into the Document.CurrentText Checks to see if the previous CurrentText matches the retrieved text This is the current change…
public bool IsDirty(bool previewIfDirty, string markdown)
|
![]() |
LostFocus |
public void LostFocus()
|
![]() |
SetFocus |
public Task SetFocus()
|
![]() |
SetLanguage |
public Task SetLanguage(string syntax)
|
![]() |
SetSelection | Sets the value of the current cursor insertion point. Either the cursor position or if selection is active replaces the entire selection with the text passed.
public Task SetSelection(string text)
|
![]() |
SetSelectionRange | Selects the specified range of characters in the editor using a value from GetSelectionRange
public Task SetSelectionRange(int startRow, int startColumn,
int endRow, int endColumn)
|
![]() |
SetShowLineNumbers |
public Task SetShowLineNumbers(bool show)
|
![]() |
SetValue | Set the value of the Editor
public Task SetValue(string value, object position,
bool keepUndoBuffer)
|
![]() |
Editor | |
![]() |
Model |
Assembly: MarkdownMonster.dll