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
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