
            editorInstances.forEach(editor => {
                const randomTheme = themes[Math.floor(Math.random() * themes.length)];
                editor.theme = randomTheme;
            });
            // Apply the last theme globally (this will affect all editors)
            if (editorInstances.length > 0) {
                OverType.setTheme(editorInstances[editorInstances.length - 1].theme);
            }
            
            console.log('Randomized all themes');
        }
        
        func