Skip to content

gloony/ctrl_enter_send

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Roundcube Plugin: Ctrl+Enter (⌘+Enter) to Send Message

This plugin adds a convenient keyboard shortcut for sending emails while composing in Roundcube with the TinyMCE editor.
It binds Ctrl+Enter (Windows/Linux) and ⌘+Enter (macOS) to the Send action, without patching Roundcube core files.


Features

  • Works on Roundcube compose screen only.
  • Supports both TinyMCE 5 and 6 APIs.
  • Resilient across different Roundcube versions and skins:
    • Uses the official window.rcmail_editor_settings.setup_callback.
    • Hooks into TinyMCE editors even if this script loads after initialization.
  • Falls back to clicking the Send button if the internal command API is unavailable.
  • Avoids double-registration across multiple editors.

Installation

  1. Copy this plugin into your Roundcube plugins/ directory:

    cd /path/to/roundcube/plugins
    git clone https://github.com/gloony/ctrl_enter_send.git
    

The folder structure should look like:

roundcube/ └── plugins/ └── ctrl_enter_send/ ├── ctrl_enter_send.php └── compose-shortcuts.js

  1. Enable the plugin in your Roundcube config (config/config.inc.php):

    $config['plugins'][] = 'ctrl_enter_send';
    
  2. Clear Roundcube’s cache (optional but recommended):

    rm -rf /path/to/roundcube/temp/*
    
    
  3. Reload Roundcube in your browser and open the compose screen.

Usage

While writing an email in the HTML editor (TinyMCE):

Press Ctrl+Enter (Windows/Linux) or ⌘+Enter (macOS) to send.

The plugin calls Roundcube’s internal send command.

If the API call fails (different Roundcube branch), it gracefully falls back to simulating a click on the Send button.

About

Add CTRL + ENTER to send mail on roundcubemail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published