# Course popup and full-width editor

Course library now sits beside Refresh and opens the same styled course list in a Bootstrap popup. Search and department filters are inside the popup, leaving the editor/reader the full content width. Selecting a course closes the popup. Unsaved changes remain protected.

Insert code opens a Bootstrap dialog that preserves tabs, spaces and line breaks. Code is stored as formatted text, not executable HTML. Existing inline code-block formatting remains available in the toolbar.

Published guidelines are editable through the normal course editor. Edit published version explicitly loads the last published notes and attachments into the editor; save a draft or use Republish to students to release updates. Students continue to receive only the published version.

No additional database migration is needed if the previous Practical Guidelines migration has already been applied. Deploy the complete updated files, preserve production configuration/uploads, and press Ctrl+F5. First-time installations still need the migration described in PRACTICAL_GUIDELINES_SETUP.md.

Validated with the live PHP/MariaDB endpoints and Chromium: popup selection, desktop/mobile widths, full-width editor, code-block indentation and safe text, editing the published version, private drafts and republishing, and the read-only student view.
