diff --git a/stories/rich-text-editor/__snapshots__/rich-text-editor.stories.storyshot b/stories/rich-text-editor/__snapshots__/rich-text-editor.stories.storyshot new file mode 100644 index 0000000000..a13e724952 --- /dev/null +++ b/stories/rich-text-editor/__snapshots__/rich-text-editor.stories.storyshot @@ -0,0 +1,1386 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Patterns/Rich Text Editor Compact Mode 1`] = ` +
+ + +
+ + +
+ + +

+ RTE Title +

+ + +
+ + +
+ + + + + + + + + + + + + + +
+ + +
+ + + + + +
+ + + + + +
+ + +
+ + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + + + + + + + +
+ + +
+ + + + + + + + + + + +
+ + + + + + + + +
+ + + + + +
+ + +
+`; + +exports[`Storyshots Patterns/Rich Text Editor Cozy Mode 1`] = ` + + +`; + +exports[`Storyshots Patterns/Rich Text Editor Over Flow RTE 1`] = ` + + +`; + +exports[`Storyshots Patterns/Rich Text Editor Over Flow RTE With Solid Tool Bar 1`] = ` + + +`; diff --git a/stories/rich-text-editor/rich-text-editor.stories.js b/stories/rich-text-editor/rich-text-editor.stories.js new file mode 100644 index 0000000000..f2694dad2b --- /dev/null +++ b/stories/rich-text-editor/rich-text-editor.stories.js @@ -0,0 +1,1159 @@ +export default { + title: 'Patterns/Rich Text Editor', + parameters: { + description: `The rich-text-editor component is an opinionated composition of the **Toolbar**, **Toggle Button**, **Menu Button**, **Split Button**, **Select**, **Icon**, **Popover**, **Menu**, **List** and **Textarea** components. + **Rich Text Editor (RTE)** The rich text editor is a complex control for data input and editing. + It allows users to format the text and insert different types of elements within the text, such as images and hyperlinks. + `, + tags: ['f3', 'a11y', 'theme'], + components: ['toolbar', 'button', 'button-split', 'menu', 'icon', 'list', 'popover', 'select', 'textarea'] + } +}; +export const cozyMode = () => ` +
+
+
+

RTE Title

+
+ +
+ + + + +
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ + + +
+
+ + + +
+ + +
+ +
+
+ `; + +export const compactMode = () => `
+
+
+

RTE Title

+
+
+ + + + +
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ + + +
+
+ + + +
+ + +
+ +
+ `; + +export const overFlowRTE = () => ` +
+
+
+

RTE Title

+
+
+ + + + +
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ + + +
+
+ + + +
+ + + + +
+
+ + +
+
+
+ +
+
+ `; + +export const overFlowRTEWithSolidToolBar = () => ` +
+
+
+

RTE Title

+
+
+ + + + +
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ + + +
+
+ + + +
+ + + + +
+
+ + +
+
+
+ +
+
+`;