Pre-hydrate protected image srcs before TipTap setContent so file:// WebView never loads /api paths under sandbox. Detect SVG correctly, emit data URLs for SVG assets, treat numeric image width as percent, and keep unit tests off real demo cache keys.