From 7d83ee3912582d3435d5a7c5fe4cb8a21617425b Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 8 Apr 2021 20:27:36 +0200 Subject: Added custom link popin in text editor --- editor/plugins.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor/plugins.ml') diff --git a/editor/plugins.ml b/editor/plugins.ml index 69319c4..68f9c31 100755 --- a/editor/plugins.ml +++ b/editor/plugins.ml @@ -71,7 +71,7 @@ let toggle_mark | None -> Js.null | Some mark_type -> - let m = state##.schema##mark_type mark_type Js.null in + let m = state##.schema##mark_fromType mark_type Js.null in (* Delete the markup code *) let tr = (state##.tr)##delete ~from ~to_ in @@ -129,6 +129,7 @@ let default pm schema = let _ = setup##unshift keymaps in let _ = setup##push (input_rule pm) in let _ = setup##push (Tooltip.bold_plugin pm) in + let _ = setup##push (Link_editor.plugin pm) in Js.some setup -- cgit v1.2.3