feat(editor): add feature flag for code block html preview (#12397)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Introduced an experimental "Code block HTML preview" feature, allowing users to preview HTML within code blocks when enabled.
- **Settings**
  - Added a toggle in experimental features to enable or disable the code block HTML preview.
- **Localization**
  - Added English translations for the new code block HTML preview feature and its description in workspace settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Flrande
2025-05-21 07:52:24 +00:00
parent 20e93543e2
commit 2de15e2677
8 changed files with 56 additions and 6 deletions
@@ -61,7 +61,8 @@ export const EdgelessSnapshot = (props: Props) => {
.foundation(framework)
.theme(framework)
.database(framework)
.linkedDoc(framework).value;
.linkedDoc(framework)
.codeBlockHtmlPreview(framework).value;
return manager
.get('preview-edgeless')
.concat([ViewportElementExtension('.ref-viewport')]);