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

    jQuery doesn't work with rich:editor

    Sergey Morenets Novice

      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.