I'm adding a new button to wymeditor, which opens a list of items, and I'd want some text to be inserted where my cursor is, when clicking on the items.
I tried the 'paste' function, but it creates a new paragraph at the end of the text.
Is there a function I could use ?