Examples

Add custom shortcuts

    This example shows how to add custom shortcuts.

    Demo

    Code

    <!--element -->
    <textarea id="content"></textarea>
    
    <!-- call -->
    <script>
    $R('#content', {
        imageUpload: '/your-upload-script/',
        shortcutsAdd: {
            'ctrl+., meta+.': { api: 'module.inline.format', args: 'sup' },
            'ctrl+shift+o, meta+shift+o': { api: 'module.image.open' }
        }
    });
    </script>