mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 20:57:08 +08:00
@@ -17,8 +17,18 @@ export class EdgelessTextViewExtension extends ViewExtensionProvider {
|
||||
|
||||
override setup(context: ViewExtensionContext) {
|
||||
super.setup(context);
|
||||
context.register([
|
||||
BlockViewExtension('affine:edgeless-text', literal`affine-edgeless-text`),
|
||||
]);
|
||||
const isEdgeless =
|
||||
context.scope === 'edgeless' ||
|
||||
context.scope === 'preview-edgeless' ||
|
||||
context.scope === 'mobile-edgeless';
|
||||
|
||||
if (isEdgeless) {
|
||||
context.register([
|
||||
BlockViewExtension(
|
||||
'affine:edgeless-text',
|
||||
literal`affine-edgeless-text`
|
||||
),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user