Fontfamily

Choose a font family for selected text.

Select some text and click the 'Font' button on the toolbar.

Code

<!DOCTYPE html>
<html>
    <head>
        <title>Redactor X</title>
        <meta charset="utf-8">

        <!-- css -->
        <link rel="stylesheet" href="/your-folder/redactorx.css" />
    </head>
    <body>
        <!-- element -->
        <textarea id="entry">...</textarea>

        <!-- js -->
        <script src="/your-folder/redactorx.js"></script>
        <script src="/your-folder/plugins/fontfamily.js"></script>

        <!-- call -->
        <script>
        RedactorX('#entry', {
            plugins: ['fontfamily']
        });
        </script>
    </body>
</html>

Usage

By default, the plugin already has a set of fonts installed. You can set your own set this way:

RedactorX('#entry', {
    plugins: ['inlineformat'],
    fontfamily: ['Inter', 'Fira Sans', 'Monospace']
});