summaryrefslogtreecommitdiff
path: root/editor/actions/editor_actions.mli
blob: 6f3421afd23ef7be04a8e836d707178ff3804ba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
type t

val build : Prosemirror.t -> t
(** Create the elements to be declared inside the panel *)

val get_event : t -> Editor_app.event Note.event
(** Get the events triggered by the actions buttons *)

val complete : t -> State.t Note.signal -> Brr.El.t list
(** Finalize the creation, register the handler to state update, and return the
    dom elements. 

    Raise an error if already completed. *)