title: Primefaces Editor and ajax submission on blur
body: <p>I have a Primefaces editor on my page and I want to submit the content to the server when the user focuses on a different component on the page.</p>
  
  <pre><code>&lt;p:editor value="#{}"&gt;
      &lt;p:ajax /&gt;
  &lt;/p:editor&gt;
  </code></pre>
  
  <p>This works find for example with <code>p:inputText</code>, but with the editor I get this error:</p>
  
  <pre><code>Unable to attach &lt;p:ajax&gt; to non-ClientBehaviorHolder parent
  </code></pre>
  
  <p>I also tried adding the <code>onchange</code> attribute to the <code>p:editor</code> and calling a <code>remoteCommand</code> to submit the content, like this:</p>
  
  <pre><code>&lt;p:editor widgetVar="documentation" onchange="submitDocumentation" /&gt;
  &lt;p:remoteCommand name="submitDocumentation" process="@parent" update="@none" /&gt;
  </code></pre>
  
  <p>That works, but on every single keystroke.  I only want to submit the content of the editor when the focus is lost.  </p>
  
  <p>Is it possible to use Ajax to submit the content of a Primefaces Editor when focus is lost?</p>
  
  <p>Using Tomcat 7, Mojarra and Primefaces 4.0</p>