Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation for RichTextInputToolbar's LevelSelect #7671

Merged
merged 1 commit into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/RichTextInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Or to remove some prebuilt components like the `<AlignmentButtons>`:
import {
RichTextInput,
RichTextInputToolbar,
RichTextInputLevelSelect,
LevelSelect,
FormatButtons,
ListButtons,
LinkButtons,
Expand All @@ -71,7 +71,7 @@ const MyRichTextInput = ({ size, ...props }) => (
<RichTextInput
toolbar={
<RichTextInputToolbar>
<RichTextInputLevelSelect size={size} />
<LevelSelect size={size} />
<FormatButtons size={size} />
<ListButtons size={size} />
<LinkButtons size={size} />
Expand All @@ -97,7 +97,7 @@ import {
DefaultEditorOptions,
RichTextInput,
RichTextInputToolbar,
RichTextInputLevelSelect,
LevelSelect,
FormatButtons,
AlignmentButtons,
ListButtons,
Expand All @@ -113,7 +113,7 @@ const MyRichTextInput = ({ size, ...props }) => (
editorOptions={MyEditorOptions}
toolbar={
<RichTextInputToolbar>
<RichTextInputLevelSelect size={size} />
<LevelSelect size={size} />
<FormatButtons size={size} />
<AlignmentButtons {size} />
<ListButtons size={size} />
Expand Down
4 changes: 2 additions & 2 deletions docs/Upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -2581,7 +2581,7 @@ import {
RichTextInput,
+ DefaultEditorOptions,
+ RichTextInputToolbar,
+ RichTextInputLevelSelect,
+ LevelSelect,
+ FormatButtons,
+ AlignmentButtons,
+ ListButtons,
Expand All @@ -2601,7 +2601,7 @@ const MyRichTextInput = (props) => (
- configureQuill={configureQuill}
+ toolbar={
+ <RichTextInputToolbar>
+ <RichTextInputLevelSelect size={size} />
+ <LevelSelect size={size} />
+ <FormatButtons size={size} />
+ <AlignmentButtons {size} />
+ <ListButtons size={size} />
Expand Down
8 changes: 4 additions & 4 deletions packages/ra-input-rich-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Or to remove some prebuilt components like the `<AlignmentButtons>`:
import {
RichTextInput,
RichTextInputToolbar,
RichTextInputLevelSelect,
LevelSelect,
FormatButtons,
ListButtons,
LinkButtons,
Expand All @@ -66,7 +66,7 @@ const MyRichTextInput = ({ size, ...props }) => (
<RichTextInput
toolbar={
<RichTextInputToolbar>
<RichTextInputLevelSelect size={size} />
<LevelSelect size={size} />
<FormatButtons size={size} />
<ListButtons size={size} />
<LinkButtons size={size} />
Expand All @@ -92,7 +92,7 @@ import {
DefaultEditorOptions,
RichTextInput,
RichTextInputToolbar,
RichTextInputLevelSelect,
LevelSelect,
FormatButtons,
AlignmentButtons,
ListButtons,
Expand All @@ -108,7 +108,7 @@ const MyRichTextInput = ({ size, ...props }) => (
editorOptions={MyEditorOptions}
toolbar={
<RichTextInputToolbar>
<RichTextInputLevelSelect size={size} />
<LevelSelect size={size} />
<FormatButtons size={size} />
<AlignmentButtons {size} />
<ListButtons size={size} />
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-input-rich-text/src/RichTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { RichTextInputToolbar } from './RichTextInputToolbar';
* <RichTextInput
* toolbar={(
* <RichTextInputToolbar>
* <RichTextInputLevelSelect size={size} />
* <LevelSelect size={size} />
* <FormatButtons size={size} />
* <ListButtons size={size} />
* <LinkButtons size={size} />
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-input-rich-text/src/RichTextInputToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
* <RichTextInput
* toolbar={(
* <RichTextInputToolbar>
* <RichTextInputLevelSelect size={size} />
* <LevelSelect size={size} />
* <FormatButtons size={size} />
* <ListButtons size={size} />
* <LinkButtons size={size} />
Expand Down