ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.32k stars 3.68k forks source link

How do I save/handle/load data when using React/Vue/Angular components? #16717

Open Reinmar opened 1 month ago

Reinmar commented 1 month ago

šŸ“ Provide a description of requested docs changes

Problems

The following 3 guides:

None of them explains how to handle data.

At the same time, the dedicated guide for getting and setting data covers it from the vanilla JS perspective. Which isn't necessary translatable.

Finally, I remember we discussed people using the onChange() attribute of the React component which is an anti-pattern due to performance and UX implciations.

However, it's not a surprise that people use the wrong method if we don't offer nor document the correct ones.

Definition of done

These are the minimal steps. We can do more ofc.

Witoso commented 1 month ago

The decision here may also influence if we decide in the future to add saving data mechanism to other integration pages (e.g. Laravel, .NET). So let's keep it in mind.

Witoso commented 1 month ago

And to add more, this also influences the Builder output snippets for each framework.