Fixed image section editing button functionality: 1. **getCurrentEditingSectionId fix**: Updated to recognize both text editor containers (.ui-edit-editor-container) and image editor containers (.ui-edit-image-editor-container) 2. **Accept button fix**: - Properly handles alt text updates with immediate DOM reflection - Calls acceptChanges() and hideEditor() directly instead of generic handler - Ensures updateSectionContent() is called for immediate visual feedback 3. **Cancel button fix**: - Directly calls cancelChanges() and hideEditor() for proper flow - Removes dependency on generic handler that couldn't identify image containers 4. **Reset button fix**: - Calls resetSection() and refreshes image editor with reset content - Provides immediate visual feedback by reopening editor with original content Added comprehensive test suite with 7 tests covering all button interactions. All image section editing buttons now work correctly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
10 KiB
10 KiB