ViewerMarkerHelper(preview)

Class ViewerMarkerHelper

new ViewerMarkerHelper(preview)

Creates an instance of ViewerMarkerHelper.

Parameters:
Name Type Description
preview Preview

preview instance

Methods

clearSelect()

clearSelect
Clear selection

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 preview

Parameters:
Name Type Description
marker object

marker

Returns:
object -

marker