I want to add some client-side functionality to the PrimeFaces p:editor, but for some reason I am not able to uncover what JavaScript client side code they
<p:editor/> JavaScript source is located in /META-INF/resources/primefaces/editor/editor.js inside primefaces-xxx.jar.
<p:editor/>
/META-INF/resources/primefaces/editor/editor.js
PrimeFaces p:editor uses CLEditor
look at this thread
also you should take a look at the PrimeFaces Extensions Project they implemented an editor that uses the CKEditor