OpenESignForms / vaadin-ckeditor

Vaadin component wrapper around CKEditor
4 stars 11 forks source link

CKEditor does not update value when used with a FieldGroup #53

Closed EduFrazao closed 8 years ago

EduFrazao commented 8 years ago

After update to CKEditor Wrapper 7.10.7, when a new ItemDataSource is placed on a FieldGroup, CKEditor does not show the value. All other fields bound on the FieldGroup works.

OpenESignForms commented 8 years ago

Rats. I'm guessing this is related to the patch provided for this release that was designed to resolve an issue 52 with long polling.

https://github.com/OpenESignForms/vaadin-ckeditor/pull/52

It appears that when you set the item data source, the new value is not making the rounds. For now, just use 7.10.6 as the only other update was a new version of CKEditor itself that didn't seem like an important update for most uses.

Please let us know if 7.10.6 resolves it for you as we'll be sure that the bug is in that patch from Matti, and perhaps he will have some idea what is missing to enable his code to work.

EduFrazao commented 8 years ago

You are right. 7.10.6 is working fine. Should I close this bug?

OpenESignForms commented 8 years ago

No, please keep it open as the bug still needs to be resolved. Thanks for noting the patch fix created this bug and by removing it all is good. We'll see if the author of that patch has a way to make it work on setting a new item data source as that seems more fundamental than handling cursor repositioning for those using long polling.

EduFrazao commented 8 years ago

Thank you by your fast answer. Right now i'm very busy, but if the patch owner does not publish a solution, I will try to check this out on this weekend.

mstahv commented 8 years ago

I think this should do it: https://github.com/mstahv/vaadin-ckeditor/commit/6823888f16729ea1abd7182c08941ac4cf514aef

OpenESignForms commented 8 years ago

Thanks, Matti. We'll put this together along with the latest CKEditor update and get it out shortly.