Allow heading tags (h1-h6) in ContentSanitizer so news editor headings render

This commit is contained in:
2026-06-04 07:52:57 +02:00
parent 0b33a1b074
commit 15870ddb1f
191 changed files with 15453 additions and 1786 deletions

View File

@@ -9,20 +9,20 @@ function ensurePreviewOverlay() {
}
previewOverlay = document.createElement('div')
previewOverlay.className = 'fixed inset-0 z-[130] hidden items-center justify-center bg-[#020611e8] p-4 backdrop-blur-md'
previewOverlay.className = 'fixed inset-0 z-[130] hidden items-center justify-center bg-[#020611bf] p-6 backdrop-blur-xl'
previewOverlay.setAttribute('role', 'dialog')
previewOverlay.setAttribute('aria-modal', 'true')
previewOverlay.setAttribute('aria-label', 'Image preview')
const frame = document.createElement('div')
frame.className = 'relative max-h-[92vh] max-w-6xl'
frame.className = 'relative flex max-h-[92vh] w-full max-w-6xl flex-col items-center gap-4'
previewImage = document.createElement('img')
previewImage.className = 'max-h-[92vh] max-w-full rounded-[28px] border border-white/10 shadow-[0_28px_90px_rgba(2,6,23,0.6)]'
previewImage.className = 'max-h-[78vh] max-w-full rounded-[28px] border border-white/10 shadow-[0_28px_90px_rgba(2,6,23,0.45)]'
previewImage.alt = 'Image preview'
previewCaption = document.createElement('div')
previewCaption.className = 'absolute inset-x-0 bottom-0 rounded-b-[28px] bg-gradient-to-t from-black/80 to-transparent px-5 py-4 text-sm font-medium text-white/90'
previewCaption.className = 'w-full max-w-4xl rounded-[24px] border border-white/10 bg-black/30 px-6 py-4 text-center text-sm font-medium leading-6 text-white/90 backdrop-blur-md'
const closeButton = document.createElement('button')
closeButton.type = 'button'