Skip to content

Instantly share code, notes, and snippets.

@pjpscriv
Last active September 15, 2025 01:32
Show Gist options
  • Save pjpscriv/882b05d1f4d3a5d6eb11c25c3fc209fc to your computer and use it in GitHub Desktop.
Save pjpscriv/882b05d1f4d3a5d6eb11c25c3fc209fc to your computer and use it in GitHub Desktop.
Press Ctrl+Enter to save in Taiga WYSIWYG editor for user story descriptions and comments. Basically I wanted it to do the same thing Jira does.
// ==UserScript==
// @name Taiga Ctrl+Enter Save
// @namespace http://pjpscriv.com/
// @version 2025-09-11
// @description Press Ctrl+Enter to save in Taiga WYSIWYG editor
// @author @pjpscriv
// @match https://tree.taiga.io/*
// @icon https://tree.taiga.io/v-1750662897664/images/favicon.png
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Listen for keydown events on the document
document.addEventListener('keydown', function(event) {
// Check if Ctrl+Enter was pressed
if (event.ctrlKey && event.key === 'Enter') {
// Prevent default behavior
event.preventDefault();
// Find the save button using the provided CSS selector
const saveButton = document.querySelector('tg-wysiwyg:has(.ck-content.ck-focused) .tools [translate="COMMON.SAVE"]');
if (saveButton) {
// Click the save button
saveButton.click();
console.log('Taiga: Save button clicked via Ctrl+Enter');
} else {
console.log('Taiga: Save button not found or editor not focused');
}
}
});
console.log('Taiga Ctrl+Enter Save userscript loaded');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment