feat(viewers): open SVG files as source with a live image preview (#6266)

SVG files open in the text editor with the image viewer beside it and the
Editor Only / Editor and Preview / Preview Only switch Markdown has. The preview
is redrawn from the source as it is typed, reports invalid SVG and recovers once
it is valid; it is drawn as an image, so scripts never run. The SVG layout is
remembered apart from Markdown's, raster images keep the image viewer, and text
editor wrappers gain `fallback` so a plugin's editor for a more specific SVG
pattern still wins.

Fixes #6234
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-27 05:32:32 +08:00
1 джерело 3d2b0946de
коміт add23fe97f
14 files changed
+482 -125

No files matched your search

+4 -1
Переглянути файл
@@ -4175,5 +4175,8 @@
"Where Clause": "Where Clause",
"SQL INSERT": "SQL INSERT",
"SQL UPDATE": "SQL UPDATE",
"SQL DELETE": "SQL DELETE"
"SQL DELETE": "SQL DELETE",
"SVG editor layout": "SVG editor layout",
"Resize SVG preview": "Resize SVG preview",
"The SVG source is not valid.": "The SVG source is not valid."
}
+4 -1
Переглянути файл
@@ -10621,5 +10621,8 @@
"SQL INSERT": "SQL INSERT 语句",
"SQL UPDATE": "SQL UPDATE 语句",
"SQL DELETE": "SQL DELETE 语句",
"Column comment": "列注释"
"Column comment": "列注释",
"SVG editor layout": "SVG 编辑器布局",
"Resize SVG preview": "调整 SVG 预览大小",
"The SVG source is not valid.": "SVG 源代码无效。"
}