logo

/repo|v1.4.10

Class

new MdTextObject(mde, range)mdTextObject.jsline 11

Class Markdown textObject

PARAMETERS
NameTypeDescription

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
NameTypeDescription

offset

number

Offset

RETURNS:
{

Object

}

replaceContent(content)mdTextObject.jsline 87

Replace current selection's content with given text content

PARAMETERS
NameTypeDescription

content

string

Replacement content

setEndBeforeRange(range)mdTextObject.jsline 49

Set start to end

PARAMETERS
NameTypeDescription

range

object

Range object

setRange(range)mdTextObject.jsline 40

Set range to given range

PARAMETERS
NameTypeDescription

range

object

Range object

Resizable