diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2022-02-07 16:14:09 +0100 | 
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2022-02-07 16:43:33 +0100 | 
| commit | bf94695abeda0d7bb296ae4cd0f9a53782587d4a (patch) | |
| tree | 06dac432cfaa57dc6ad428b116332fdf777c84d8 /editor/state/state.mli | |
| parent | 4d35508a76676a548ac45e0bff2d63eafaf014e2 (diff) | |
Update editor organisation
Diffstat (limited to 'editor/state/state.mli')
| -rwxr-xr-x | editor/state/state.mli | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/editor/state/state.mli b/editor/state/state.mli new file mode 100755 index 0000000..e370015 --- /dev/null +++ b/editor/state/state.mli @@ -0,0 +1,24 @@ +module Js = Js_of_ocaml.Js + +module Storage = Storage + +type t = +  { editable : bool +  ; view : Prosemirror.View.editor_view Js.t +  ; last_backup: float +  ; page_id: Jstr.t option + +  ; window : Brr.El.t list +  ; pm : Prosemirror.t +  } + +val eq: t -> t -> bool + +val set_title +  : Storage.content Js.t -> unit + +val state_of_storage +  : Prosemirror.t -> Storage.content Js.t -> Prosemirror.Model.schema Js.t -> Prosemirror.State.editor_state Js.t + +val load_page +  : Jstr.t option -> t -> Storage.content Js.t -> t | 
