MarkdownMarkerHelper(cm)

Class MarkdownMarkerHelper

new MarkdownMarkerHelper(cm)

Creates an instance of MarkdownMarkerHelper.

Parameters:
Name Type Description
cm CodeMirror

codemirror instance

Methods

clearSelect()

clearSelect
Clear selection of CodeMirror

getMarkerInfoOfCurrentSelection() → {object}

getMarkerInfoOfCurrentSelection
Get marker info of current selection

Returns:
object -

marker

getTextContent() → {string}

getTextContent
Get CRLF removed text content of CodeMirror

Returns:
string -

text content

selectOffsetRange(start, end)

selectOffsetRange
Make selection with given offset range

Parameters:
Name Type Description
start number

start offset

end number

end offset

updateMarkerWithExtraInfo(marker) → {object}

updateMarkerWithExtraInfo
Update marker with extra info of CodeMirror

Parameters:
Name Type Description
marker object

marker

Returns:
object -

marker