Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

story(RichTextEditor): a Disabled story (#10426)

Cindy Zhangfc71bd4a0ee0
diff --git a/apps/storybook/stories/RichTextEditor.stories.tsx b/apps/storybook/stories/RichTextEditor.stories.tsx
index 84fa790a4f..c3911c541d 100644
--- a/apps/storybook/stories/RichTextEditor.stories.tsx
+++ b/apps/storybook/stories/RichTextEditor.stories.tsx
@@ -244,6 +244,18 @@ export const ReadOnly: Story = {
},
};
+/** A disabled editor and toolbar with formatted content. */
+export const Disabled: Story = {
+ args: {
+ label: 'Notes',
+ isDisabled: true,
+ toolbar: <RichTextEditorToolbar />,
+ defaultValue: markdownToEditorStateJSON(
+ 'A **disabled** editor keeps its *formatted* text.\n',
+ ),
+ },
+};
+
/** A disabled editor whose content holds a link. */
export const DisabledWithLink: Story = {
name: 'Disabled with a link',