Documentation

website.modules.markdown-editor.source-model

Literal source transformations and the narrow native document/selection boundary.

document

(document)

import-tree

(import-tree text uploads)

node-value

(node-value node offset)

point-at

(point-at {:keys [segments elements text]} position)

point-offset

(point-offset {:keys [segments elements]} point)

replace-text!

(replace-text! text)

select-drop-point!

(select-drop-point! editor event)

Measure the browser’s drop caret, then update only the native selection model.

select-range!

(select-range! document anchor head)

selected-range

(selected-range document)

upload-id

(upload-id node)