blob: e370015b5c35cf143312653c5d96e7bce8037ab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|