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.
- 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.
- Uses the official
- Falls back to clicking the Send button if the internal command API is unavailable.
- Avoids double-registration across multiple editors.
-
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
-
Enable the plugin in your Roundcube config (config/config.inc.php):
$config['plugins'][] = 'ctrl_enter_send';
-
Clear Roundcube’s cache (optional but recommended):
rm -rf /path/to/roundcube/temp/* -
Reload Roundcube in your browser and open the compose screen.
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.