* fix: Tiptap Media Picker: Skip media picker modal when editing existing images Fixes the media picker workflow to match v13 behavior where clicking an existing image directly opens the alt text/caption editor instead of forcing users to re-select the same image from the media library. Also fixes caption text extraction to properly read from the figcaption node using Tiptap's NodeSelection API instead of unreliable attribute-based approach. Changes: - Skip media picker when currentMediaUdi exists (lines 77-92) - Extract caption from NodeSelection.node using descendants() (lines 55-73) - Add NodeSelection export to tiptap externals for proper typing * Refactor: Extract nested logic from media picker execute method Reduces cyclomatic complexity from 15 to 1 by extracting conditional logic into focused private helper methods. Addresses CodeScene warnings for complex method and nested conditionals (bumpy road smell). Created helper methods: - #extractMediaUdi, #extractCaption, #findFigcaptionText - #getMediaGuid, #updateImageWithMetadata No functional changes - improves maintainability and testability.
Umbraco CMS
Umbraco is a free and open source .NET content management system. Our mission is to help you deliver delightful digital experiences by making Umbraco friendly, simpler and social.
Learn more at umbraco.com
Looking to install Umbraco?
You can get started using the following commands on Windows, Linux and MacOS (after installing the .NET Runtime and SDK):
dotnet new install Umbraco.Templates
dotnet new umbraco --name MyProject
cd MyProject
dotnet run
Documentation
Our comprehensive documentation takes you from the fundamentals on how to start with Umbraco to deploying it to production.
Some important documentation links to get you started:
- Installing Umbraco CMS
- Getting to know Umbraco
- Tutorials for creating a basic website and customizing the editing experience
Backoffice Preview
Want to see the latest backoffice UI in action? Check out our live preview:
This preview is automatically deployed from the main branch and showcases the latest backoffice features and improvements. It runs from mock data and persistent edits are not supported.
Get help
If you need a bit of feedback while building your Umbraco projects, we are chatty on Discord. Our Discord server serves as a social space for all Umbracians. If you have any questions or need some help with a problem, head over to our dedicated forum where the Umbraco Community will be happy to help.
Looking to contribute back to Umbraco?
You came to the right place! Our GitHub repository is available for all kinds of contributions:
Umbraco is contribution-focused and community-driven. If you want to contribute back to the Umbraco source code, please check out our guide to contributing.
