WysiwygMarkerHelper(sqe)

Class WysiwygMarkerHelper

new WysiwygMarkerHelper(sqe)

Creates an instance of WysiwygMarkerHelper.

Parameters:
Name Type Description
sqe SquireExt

squire instance

Methods

clearSelect()

clearSelect
Clear selection of squire

getMarkerInfoOfCurrentSelection() → {object}

getMarkerInfoOfCurrentSelection
Get marker info of current selection

Returns:
object -

marker

getTextContent() → {string}

getTextContent
Get text content of wysiwyg

Returns:
string

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