Adding a value from multiselect to editor

Hi,

In Vaadin how can we include a value in Multi-select component to a rich text editor at the cursor position.



Scenario:

When the user is typing on the editor at certain line instead of typing the product name the user wants to select the product from multi-select table and the selected value has to be inserted at the cursor location on the editor.

Thanks