From 1eeaf137bd30aff1bef34d05eeec686f6da8959d Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 23 May 2021 22:09:50 +0200 Subject: Update editor --- editor/state/state.mli | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'editor/state/state.mli') 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 -- cgit v1.2.3