How to insert text in a p: editor?

1

I have <p:editor /> and I need to insert predefined texts at the current cursor position.

I've been looking at the documentation for Primefaces and found nothing like it (I can clean using PF('editor').clear() but I can not find anything to insert text)

    
asked by anonymous 29.12.2015 / 20:43

1 answer

0

I got the answer in the Primefaces forum post

PF('edt').editor.execCommand('inserthtml','texto inserido');
    
30.12.2015 / 14:56