Defined links

The plugin adds select input to the link inserting popup and from it you can select predefined links.

Add a link to the text by selecting it from a predefined list in the link popup.

Code

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

        <!-- css -->
        <link rel="stylesheet" href="/your-folder/revolvapp.css" />
    </head>
    <body>
        <!-- element -->
        <div id="myemail"></div>

        <!-- js -->
        <script src="/your-folder/revolvapp.js"></script>
        <script src="/your-folder/plugins/definedlinks.js"></script>

        <!-- call -->
        <script>
        Revolvapp('#myemail', {
            plugins: ['definedlinks'],
            editor: {
                font: 'Inter, Helvetica, Arial, sans-serif',
                path: '/your-path-to-revolvapp-folder/',
                template: '/your-path-to-template-file.html'
            },
            definedlinks: {
                items: [
                    { "name": "Select...", "url": false },
                    { "name": "Google", "url": "http://google.com" },
                    { "name": "Home", "url": "/" },
                    { "name": "About", "url": "/about/" },
                    { "name": "Contact", "url": "/contact/" }
                ]
            }
        });
        </script>
    </body>
</html>