ckeditor5-angular icon indicating copy to clipboard operation
ckeditor5-angular copied to clipboard

Configuration update should update editor config preceded by editor restart

Open ma2ciek opened this issue 4 years ago • 0 comments

From the user's perspective the CKEditor component is a simple declarative component and it should handle correctly all properties updates without worrying user what method should he use to change from the first state to the second.

Let's say that we have a list of products and an editor aside that is used to change their descriptions. Let's say we use the RTC as these products need long and detailed descriptions and we don't want to allow that first user description will be overwritten by the second one.

So a developer just adds <ckeditor [config]="config"> so he can dynamically set the editor's config and data.

But... currently, when the config changes nothing happens and when the data property changes the editor.setData() is called which breaks the RTC, so there's no way to use the editor in the following way without some hacks.

The same issue touches each official integration (Vue, Angular and React)


If you'd like to see this improvement implemented, add a 👍 reaction to this post.

ma2ciek avatar Apr 03 '20 09:04 ma2ciek