Skip to content

Commit 5f743cc

Browse files
authored
fix(RichTextEditor): Building process (#2626)
1 parent cbc9717 commit 5f743cc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/nasty-towns-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@frontify/fondue-rte": patch
3+
---
4+
5+
Fix building FontColorPlugin, module name could not be resolved.

packages/rte/src/components/RichTextEditor/Plugins/FontColorPlugin/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* (c) Copyright Frontify Ltd., all rights reserved. */
22

3+
import { type PlatePlugin } from '@udecode/plate-core';
34
import { createFontColorPlugin } from '@udecode/plate-font';
45

56
import { Plugin, type PluginProps } from '../Plugin';
@@ -11,5 +12,7 @@ export class FontColorPlugin extends Plugin {
1112
super('font-color-plugin', { button: FontColorButton, ...props });
1213
}
1314

14-
plugins = () => [createFontColorPlugin()];
15+
plugins(): PlatePlugin[] {
16+
return [createFontColorPlugin()];
17+
}
1518
}

0 commit comments

Comments
 (0)