From c6265278f05aa4d3af60e420f2d4d13e4bce8ad7 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 3 Dec 2021 04:19:53 +0100 Subject: Removed the application mecanism from the state module --- editor/actions/to_markdown.ml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'editor/actions/to_markdown.ml') diff --git a/editor/actions/to_markdown.ml b/editor/actions/to_markdown.ml index c1ac774..80191f9 100755 --- a/editor/actions/to_markdown.ml +++ b/editor/actions/to_markdown.ml @@ -1,5 +1,7 @@ module Js = Js_of_ocaml.Js module PM = Prosemirror +module App = Editor_app + type buffer = Jstr.t Js.js_array Js.t type f = (buffer -> PM.Model.node Js.t -> unit) @@ -287,8 +289,8 @@ end (** Create a new element *) let create - : PM.t -> State.event + : PM.t -> App.event = fun pm -> - State.E + App.E ( pm - , (module ToMarkdown : State.Event with type t = ToMarkdown.t )) + , (module ToMarkdown : App.Event with type t = ToMarkdown.t )) -- cgit v1.2.3