Making the text bold help you to emphasize on a specific part of the text.
To make the selection of your content bold you can use
It'll toggle between bold and not bold automatically.
This function help you to find out if the current character is bold or not. The returend boolean will update on cursor moves.
An example of
By default, the
BOLD key represent the bold 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 bold inline style, you have to pass the updated version of style map to the editor. Here is an example: