# Inline Context - Complete Changelog This file contains the complete changelog for all versions of the Inline Context plugin. For major version highlights, see README.md and readme.txt. ## Version 2.8.1 - May 2, 2026 * FIX: Inline context popover no longer closes when inserting an image from the WordPress Media Library. Root cause: the Media Library frame is a body-level modal, so its clicks registered as "outside the popover" and triggered the close handler. The fix flips a guard ref while the frame is open and releases it 200ms after close, which also covers the focus- restore click that happens immediately after the modal tears down. ## Version 2.8.0 - May 2, 2026 * NEW: Embed images inside inline context notes via the WordPress Media Library * NEW: Image button in the note editor toolbar (shown when image support is enabled) * NEW: "Allow images in notes" admin setting in the General tab (default: enabled) * NEW: Custom Quill image blot preserves alt, loading, decoding, and class attributes through Quill's serialization, so attributes survive editor round-trips * NEW: `inline_context_allowed_image_protocols` filter for sites that need data URIs or other schemes * NEW: Three CSS variables for theme-level image sizing customization: --wp--custom--inline-context--image--tooltip-max-width (default 280px) --wp--custom--inline-context--image--tooltip-max-height (default 200px) --wp--custom--inline-context--image--inline-max-height (default 400px) * IMPROVED: Tooltip mode caps images at ~280×200 to keep tooltips compact * IMPROVED: Inline mode caps image height at 400px while allowing full content width * IMPROVED: Print styles handle images with page-break avoidance and sensible sizing * IMPROVED: Confirmed WordPress 7.0 compatibility — "Tested up to" header bumped to 7.0 * IMPROVED: Always sets alt="" on images missing alt text so screen readers don't fall back to announcing filenames * IMPROVED: Image src restricted to http(s) and relative paths by default; data URIs and other protocols can be opted into via the new filter * IMPROVED: Settings export/import now includes the image-support toggle * DEV: Added project-wide babel.config.json so ESLint's parser stops warning when walking @wordpress/* dependencies * DEV: Declared react-dom as an explicit dependency (was pulled in transitively, used via WordPress's wp-element global) * DEV: Cleaned up pre-existing JSDoc and PHPCS suppression-comment placement issues ## Version 2.7.3 - March 21, 2026 * FIX: Category icons now align correctly with text at all icon placement settings * FIX: Category icon double-scaling issue where font-size and width/height both used em values, causing icons to render at 0.49em instead of the intended 0.7em * IMPROVED: Separated icon sizing between default chevron (width/height only) and category icons (font-size for glyph + 1em width/height to match), ensuring both render at the same physical size * IMPROVED: Reverted middle placement to CSS keyword "middle" for cross-theme compatibility ## Version 2.7.2 - March 20, 2026 * FIX: Custom category icons now respond to size and placement settings * FIX: Default chevron icon now responds to color and placement settings * FIX: Tooltip hover mode no longer shows erratic show/hide behavior * FIX: Admin settings JS toggles now work (screen ID mismatch prevented all JS from running) * NEW: Icon right margin CSS variable (chevron-margin-right) for theme.json and admin settings * IMPROVED: Refactored icon rendering from CSS ::after pseudo-element to real elements * IMPROVED: Shared base styles between default chevron and category icons for consistent positioning * IMPROVED: Override Dashicons ::before sizing so category icon glyphs respect the Size setting * IMPROVED: Fine-tuned icon placement: top (text-top), middle (0.05em), bottom (-0.15em) * IMPROVED: Pill style always centers icons regardless of icon placement setting * IMPROVED: Icon Placement option hidden in admin when Pill style is selected * IMPROVED: Tooltip hover uses direct per-trigger event listeners instead of delegated capture events ## Version 2.6.0 - December 27, 2025 * NEW: Color preset system with five pre-configured professional color schemes * NEW: Modern Blue (Default) preset - clean, professional look with blue accents * NEW: Minimalist Gray preset - subtle, understated design in grayscale * NEW: High Contrast preset - bold colors for maximum visibility and accessibility * NEW: Warm Earth Tones preset - cozy, natural palette with browns and oranges * NEW: Dark Mode preset - dark theme with light text for reduced eye strain * NEW: Automatic preset detection and persistence across page reloads * NEW: "Custom" indicator when user modifies preset values * NEW: Warning dialog before applying preset over custom settings * NEW: note-text-color CSS variable for better typography control (37 total variables) * IMPROVED: All presets meet WCAG 2.1 AA accessibility standards (minimum 4.5:1 contrast) * IMPROVED: Dark Mode text color with proper inheritance for WordPress block elements * IMPROVED: One-click preset application with instant visual feedback * IMPROVED: Seamless integration with existing WordPress Settings API ## Version 2.4.1 - December 19, 2025 * IMPROVED: documentation ## Version 2.4.0 - December 19, 2025 * NEW: Add new pill style * NEW: WordPress 6.9+ Abilities API integration for AI assistant discovery * NEW: Five REST API abilities for AI-powered content enhancement * NEW: `create-note` ability - Create new inline context notes via API * NEW: `search-notes` ability - Search existing notes by title/content * NEW: `get-categories` ability - Retrieve all available categories * NEW: `get-note` ability - Fetch specific note by ID * NEW: `create-inline-note` ability - Create note and get ready-to-embed HTML markup (AI helper) * NEW: Browser-based AI integration (Claude, ChatGPT) with automatic capability discovery * NEW: Comprehensive ABILITIES-API.md documentation with workflows and examples * NEW: Test infrastructure for Abilities API (test-abilities.sh, tests/test-abilities.php) * NEW: AIFeatures component for future in-editor AI UI (currently disabled by default) * IMPROVED: Authentication support via cookie auth (browser) or Application Passwords * IMPROVED: Complete JSON Schema validation for all ability inputs * IMPROVED: Permission callbacks ensure proper WordPress capability checks * IMPROVED: Backward compatible - works on WordPress 6.0+ (Abilities API optional on 6.9+) * IMPROVED: Updated "Tested up to" WordPress 6.9 ## Version 2.3.5 - 2.3.9 - November 29, 2025 * Minor fixes, updated documentation and readme.txt, added Dutch translations ## Version 2.3.4 - November 28, 2025 * FIX: WordPress.org compliance - replaced all inline