4 Replies Latest reply on Feb 13, 2012 3:31 PM by strannik

    jQuery doesn't work with rich:editor

    strannik

      Hi

       

      I have issues integrating jQuery into page with rich:editor component.

       

      The following code fragment doesn't work (server-side is not invoked).

       

      <rich:editor />

       

      <a4j:jsFunction name="updateTopics"

         action="#{myController.updateTopics()}" />

       

      <rich:jQuery selector="document" query="ready(updateTopics())" />

       

      If I move <rich:editor> after <rich:jQuery> everything works fine.

       

      <a4j:jsFunction name="updateTopics"

         action="#{myController.updateTopics()}" />

       

      <rich:jQuery selector="document" query="ready(updateTopics())" />

       

      <rich:editor />

       

      Please advise.