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

Add Rich text editor #294

Merged
merged 70 commits into from
Sep 5, 2024
Merged

Add Rich text editor #294

merged 70 commits into from
Sep 5, 2024

Conversation

ethangardner
Copy link
Contributor

Adds an initial rich text editor component and stories.

Updated RichTextPatternEdit to sync editor content with form state. Improved FormSummary rendering and enhanced form context with setValue function.
Consolidated individual editor button action handlers into a reusable editorActions array. This refactor simplifies the button creation process and enhances maintainability by reducing repeated code.
Introduced new CSS modules to standardize the margin behavior of list items within RichText components. Updated the corresponding JSX files to apply these styles for consistent appearance.
Check for rich text handler in the form blur event. Manage editor saving onChange
Implemented debounce to optimize editor updates and prevent unnecessary re-renders. Memoized toolbar component.
Updated the form field registration to accept optional validation rules through the `register` method.
Updated the form field registration to accept optional validation rules through the `register` method.
Remove `React.memo` from `MenuBar` component and add more fine-grained control with `disabled` property for button actions. Introduce new heading levels and update related stories to reflect these changes.
Adds new styles, change default heading hierarchy, and update tests
@ethangardner ethangardner marked this pull request as ready for review August 30, 2024 18:00
ethangardner and others added 3 commits September 4, 2024 10:09
* pull latest from rich text branch and clean up

* ignore cdktf type errors

* install tf providers to pass typecheck
@ethangardner ethangardner merged commit 6b53414 into main Sep 5, 2024
4 checks passed
@ethangardner ethangardner deleted the 279-stub-text-formatting branch September 5, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text formatting
3 participants