         if (afterCell) {
                afterCell.insertAdjacentHTML('afterend', cellHtml);
                initializeEditor(cellId);
                selectCell(cellId);
            }
        }
        
        function createCellHtml(cellId, cellType) {
            return `
                <div class="cell cell-type-${cellType}" data-cell-id="${cellId}" data-execution-count="0">
                    <div class="cell-status"></div>
                    <div class="cell-prompt">
                        <span