use p: contextMenu with p: editor

2

I tried to use contextMenu of Primefaces with the Editor component, but it does not work. The menu only appears if you right-click on the toolbars. The body of the Editor component gets the name of the id concatenated with _input I tried to use this in the for attribute of the contextMenu component but then the page does not open because it can not find the id which is logical because it will only exist after the parser process of jsf.

<p:editor id="e" 
          height="430"
          widgetVar="editorHtml"
          value="#{m.texto}" />
<p:contextMenu for="e">
    <p:menuitem value="Teste" />
</p:contextMenu>

Would anyone know how to make contextMenu work with the editor?

    
asked by anonymous 31.08.2015 / 22:55

0 answers