Skip to content

Commit

Permalink
Add title and role to editable prosemirror content
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Jézégou authored and AdJez committed Jan 11, 2024
1 parent 04c94fa commit 906bad2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/js/components/RichText/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const RichTextField: React.FC<RichTextFieldProps> = ({
state: initialContent
? EditorState.fromJSON(editorStateConfig, JSON.parse(initialContent))
: EditorState.create(editorStateConfig),
attributes: { role: 'textbox', title },
});

// Immediately send the loaded data, allowing parent components to update themselves with the
Expand Down

0 comments on commit 906bad2

Please sign in to comment.