addNew: false}), // Disable mouse handling
                    flattenSpans: false,  // Disable span flattening
                    keyMap: "basic",      // Use basic keymap
                    extraKeys: {},        // Disable extra keys
                    showCursorWhenSelecting: false // Disable cursor in selection
                });

                // Set editor styles
                const cmElement = editorContainer.querySelector('.CodeMirror');
                cmElement.style.height = '500px';
    