mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 13:02:21 +08:00
feat(editor): remove embed iframe feature flag (#11432)
Close [BS-3019](https://linear.app/affine-design/issue/BS-3019/remove-embed-iframe-feature-flag)
This commit is contained in:
@@ -48,10 +48,7 @@ import {
|
||||
getTextSelectionCommand,
|
||||
} from '@blocksuite/affine-shared/commands';
|
||||
import { REFERENCE_NODE } from '@blocksuite/affine-shared/consts';
|
||||
import {
|
||||
FeatureFlagService,
|
||||
FileSizeLimitService,
|
||||
} from '@blocksuite/affine-shared/services';
|
||||
import { FileSizeLimitService } from '@blocksuite/affine-shared/services';
|
||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||
import {
|
||||
createDefaultDoc,
|
||||
@@ -477,11 +474,7 @@ const embedToolGroup: KeyboardToolPanelGroup = {
|
||||
name: 'Embed',
|
||||
icon: EmbedIcon({ style: `color: black` }),
|
||||
showWhen: ({ std }) => {
|
||||
const featureFlagService = std.get(FeatureFlagService);
|
||||
return (
|
||||
featureFlagService.getFlag('enable_embed_iframe_block') &&
|
||||
std.store.schema.flavourSchemaMap.has('affine:embed-iframe')
|
||||
);
|
||||
return std.store.schema.flavourSchemaMap.has('affine:embed-iframe');
|
||||
},
|
||||
action: async ({ std }) => {
|
||||
std.command
|
||||
|
||||
Reference in New Issue
Block a user