new MdTextObject(mde, range)mdTextObject.jsline 11
Class Markdown textObject
PARAMETERS
Name Type Description mde
MarkdownEditor
MarkdownEditor instance
range
object
range
Instance Methods
deleteContent()mdTextObject.jsline 94
Delete current selection's content
expandEndOffset()mdTextObject.jsline 67
Expand endOffset by 1
expandStartOffset()mdTextObject.jsline 56
Expand startOffset by 1
getTextContent()mdTextObject.jsline 79
Get current selection's text content
RETURNS:
{Object
}
peekStartBeforeOffset(offset)mdTextObject.jsline 103
peek StartBeforeOffset
PARAMETERS
Name Type Description offset
number
Offset
RETURNS:
{Object
}
replaceContent(content)mdTextObject.jsline 87
Replace current selection's content with given text content
PARAMETERS
Name Type Description content
string
Replacement content
setEndBeforeRange(range)mdTextObject.jsline 49
Set start to end
PARAMETERS
Name Type Description range
object
Range object
setRange(range)mdTextObject.jsline 40
Set range to given range
PARAMETERS
Name Type Description range
object
Range object