// Initialize Quill var quill = new Quill('#quill-container', { theme: 'snow' // or 'bubble' }); // Function to set focus at the end of the document function focusAtEnd() { var length = quill.getLength(); quill.setSelection(length, length); quill.focus(); } // Example: Set focus to the end when a button is clicked document.getElementById('your-button-id').addEventListener('click', function() { f..