Hello,
I have seen the CKEditor sample project https://github.com/cuba-labs/js-component-integration
but how can I get or bind the data(text) entered in it
with datasource and property ?
Hello,
I have seen the CKEditor sample project https://github.com/cuba-labs/js-component-integration
but how can I get or bind the data(text) entered in it
with datasource and property ?
Hi @denilaboski!
I’ve updated the sample project to the latest CUBA version. Also, I’ve added get/set value methods to the CKEditor component and corresponding ValueChange
listener.
In order to bind a Vaadin component to datasource without full integration into the Generic UI, I would recommend using the ValueChangeListener
, e.g.:
ckEditor.addValueChangeListener(valueChangeEvent ->
getEditedEntity().setSomeValue(valueChangeEvent.getValue())
);
Regards,
Gleb
Great, thank you !