10000 [RTE]: improve errors handing · Issue #2765 · epam/UUI · GitHub
[go: up one dir, main page]

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

[RTE]: improve errors handing #2765

Open
AlekseyManetov opened this issue Feb 20, 2025 · 0 comments
Open

[RTE]: improve errors handing #2765

AlekseyManetov opened this issue Feb 20, 2025 · 0 comments
Labels
feature New feature or request RTE uui-editor package

Comments

@AlekseyManetov
Copy link
Collaborator

Description

Sometimes we can get an error inside the RTE, for example, when a user inserts invalid content, unexpected actions, or for some other reason (a huge variety of actions). In this case, we often get a JS error from inside the RTE, and our default UUI ErrorHandling draws an ErrorPage, which shows instead of the RTE, and thus the user loses the data they entered. Moreover, not all errors are critical, and in some cases, the user can continue working with the RTE.

Describe the solution you'd like

Improve the error handling mechanism, which will not lead to unmounting the component and ErrorPage:

  • Explore the capabilities of Slate and Plate for error handling - Error handling ianstormtaylor/slate#5407. We need to check if there is a way to catch the error and leave the editor working.
  • Improve UX to show the user the error inside the RTE, without losing the entered data.
@AlekseyManetov AlekseyManetov added feature New feature or request RTE uui-editor package labels Feb 20, 2025
@AlekseyManetov AlekseyManetov changed the title [RTE]: improve internal error handing [RTE]: improve errors handing Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request RTE uui-editor package
Projects
Status: Backlog
Development

No branches or pull requests

1 participant
0