A typographical logo of Contenido.

Bold

Making the text bold help you to emphasize on a specific part of the text.

toggleBold #

To make the selection of your content bold you can use toggleBold function. It'll toggle between bold and not bold automatically.

isBold #

This function help you to find out if the current character is bold or not. The returend boolean will update on cursor moves.

Example #

An example of toggleBold and isBold usage:

Customization #

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:



Made with ❤ for a better experience

MIT © 2023 - This site does not track you.