(add-parinfer-after-console-start console-start-num state)
(create-editor ps
content
events-chan
{:keys [history-limit append-limit compiler-fn console-callback
disable-clj? edit-history]
:or {history-limit 100 append-limit 5000}})
(can-redo? this)
(up! this alt?)
(refresh! this state)
(undo! this)
(redo! this)
(tab! this)
(enter! this)
(append-text! this text)
(can-undo? this)
(edit-and-refresh! this state)
(update-cursor-position! this position)
(eval! this form callback)
(refresh-after-cut-paste! this)
(refresh-after-key-event! this event)
(initialize! this)
(down! this alt?)
(reset-edit-history! this start)
(hide-error-messages! parent-elem)
Hides all error popups.
Hides all error popups.
(init-state content crop? full-selection?)
Returns the editor's state. If full-selection? is true, it will try to save the entire selection rather than just the cursor position.
Returns the editor's state. If full-selection? is true, it will try to save the entire selection rather than just the cursor position.
(key-name? event key-name)
Returns true if the supplied key event involves the key(s) described by key-name.
Returns true if the supplied key event involves the key(s) described by key-name.
(line-numbers line-count)
Adds line numbers to the numbers.
Adds line numbers to the numbers.
(post-refresh-content! content events-chan {:keys [cropped-state] :as state})
Does additional work on the content after it is rendered.
Does additional work on the content after it is rendered.
(rainbow-delimiters parent level)
(rainbow-delimiters parent level m)
Returns a map of elements and class names.
Returns a map of elements and class names.
(refresh-content! content state)
Refreshes the content.
Refreshes the content.
(refresh-content-element! {:keys [element text] :as cropped-state})
Replaces a single node in the content, and siblings if necessary.
Replaces a single node in the content, and siblings if necessary.
(refresh-instarepl! instarepl content compiler-fn limit)
Refreshes the InstaREPL.
Refreshes the InstaREPL.
(refresh-numbers! numbers line-count)
Refreshes the line numbers.
Refreshes the line numbers.
(show-error-message! parent-elem event)
Shows a popup with an error message.
Shows a popup with an error message.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close