Creates editor (both input editors and output editors) ** :code-mirror: The input editor is codemirror. The output editor is codemirror ** :html: The input editor is codemirror. The output editor is html ** :dom: The input editor is plain text. The output editor is plain text
Creates editor (both input editors and output editors) ** :code-mirror: The input editor is codemirror. The output editor is codemirror ** :html: The input editor is codemirror. The output editor is html ** :dom: The input editor is plain text. The output editor is plain text
(editor-options editor-in-mode
editor-out-mode
codemirror-options-in
codemirror-options-out)(eval-in-codemirror-editor eval-fn
result-element
editor-source
snippet-args
mode
state)(eval-in-editor eval-fn
src-code
unsafe-setter
{:keys [loop-msec preamble]}
state)Evaluates the value - with preamble prepended to it.
If setter is defined, call setter with the result of the evaluation.
Block until the first evaluation.
Call setter with subsequent evaluations asynchronously. Subsequent evaluations don't include preamble.
(Subsequent evaluations occur with server-eval where printing results are written on the channel, one after the other.
In the case of client side evaluation, the channel is closed after the first message on the channel (this is done implicitly by go).
Evaluates the `value` - with `preamble` prepended to it. If `setter` is defined, call `setter` with the result of the evaluation. Block until the first evaluation. Call `setter` with subsequent evaluations asynchronously. Subsequent evaluations don't include `preamble`. (Subsequent evaluations occur with `server-eval` where printing results are written on the channel, one after the other. In the case of client side evaluation, the channel is closed after the first message on the channel (this is done implicitly by `go`).
(eval-in-html-editor eval-fn result-element editor-source snippet-args state)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |