Module

FPO.Components.Editor.Keybindings

#makeBold

#makeItalic

#underscore

#keyBinding

#surroundSelection

surroundSelection :: String -> String -> Editor -> Effect Unit

Surrounds the selected text with the given left and right strings and positions the cursor after the inserted left text.

#isSelectionSurrounded

isSelectionSurrounded :: String -> String -> Editor -> Effect Boolean

Checks if the selected text is surrounded by the given left and right strings.

#deleteSurrounding

deleteSurrounding :: String -> String -> Editor -> Effect Unit

Deletes the surrounding left and right strings from the selected text.

Modules