summaryrefslogtreecommitdiff
path: root/editor/state/state.mli
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-05-23 22:09:50 +0200
committerSébastien Dailly <sebastien@dailly.me>2022-02-07 16:43:33 +0100
commit1eeaf137bd30aff1bef34d05eeec686f6da8959d (patch)
tree63589546a32b72382e94f1ee16cf671cec911648 /editor/state/state.mli
parent97f3ac8054de22b94e4ae169dae33ed5b1b41a52 (diff)
Update editor
Diffstat (limited to 'editor/state/state.mli')
-rwxr-xr-xeditor/state/state.mli6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/state/state.mli b/editor/state/state.mli
index e370015..6984067 100755
--- a/editor/state/state.mli
+++ b/editor/state/state.mli
@@ -1,5 +1,4 @@
module Js = Js_of_ocaml.Js
-
module Storage = Storage
type t =
@@ -14,6 +13,7 @@ type t =
val eq: t -> t -> bool
+(** Update the title element according to the page. *)
val set_title
: Storage.content Js.t -> unit
@@ -22,3 +22,7 @@ val state_of_storage
val load_page
: Jstr.t option -> t -> Storage.content Js.t -> t
+
+(** Initialise a new state *)
+val init
+ : Prosemirror.t -> Prosemirror.View.editor_view Js.t -> float -> Jstr.t option -> t