The overline will add a line above the text. This can be useful for emphasizing or highlighting headings or the other pieces of text.
To make the selection of your content overlined you can use
It'll toggle between overlined and not overlined automatically.
This function help you to find out if the current character is overlined or not. The returend boolean will update on cursor moves.
An example of
By default, the
OVERLINE key represent the overlined inline style. For any reason if you need
to change this key to something else, you can pass your custom key to the previous functions as
the third parameter.
Also if you changed the default key for the overline inline style, you have to pass the updated version of style map to the editor. Here is an example: