ICEfaces
  1. ICEfaces
  2. ICE-9120

ace:richTextEntry - Add ace:ajax "blur" or "change" event support

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      -
    • Assignee Priority:
      P2
    • Salesforce Case Reference:
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      Tabbing out of the ace:richTextEntry does not trigger the nested ace:ajax call. This was also the case with the ice:inputRichText until a fix for ICE-6656. Here is an example of the code used:

      <ace:richTextEntry id="iceInpRchTxt" width="500" value="#{bean.test}" >
      <ace:ajax execute="@this" render="@all" />
      </ace:richTextEntry>

      Test case attached.

        Activity

        Hide
        Ken Fyten added a comment -

        Currently, the only ace:ajax event supported by ace:richTextEntry is "save", which is not triggered by tabbing out of the component, only by clicking the Save button in the toolbar.

        This improvement is to add a new client event that would submit/save the richTextEntry value on "blur" or possibly "change", such that tabbing out would trigger the save.

        Show
        Ken Fyten added a comment - Currently, the only ace:ajax event supported by ace:richTextEntry is "save", which is not triggered by tabbing out of the component, only by clicking the Save button in the toolbar. This improvement is to add a new client event that would submit/save the richTextEntry value on "blur" or possibly "change", such that tabbing out would trigger the save.
        Hide
        Arturo Zambrano added a comment -

        Committed improvement at revision 34923.

        Added the 'blur' ajax event. One challenge was that the blur event kept being triggered in the editor whenever clicking on any of the buttons, so I had to add a way to prevent this by registering a beforeCommandExec event to cancel the blur ajax request. Also, the content was being erased when clicking on the save button when having an ajax blur event, so this was fixing by tweaking some references to some variables.

        Show
        Arturo Zambrano added a comment - Committed improvement at revision 34923. Added the 'blur' ajax event. One challenge was that the blur event kept being triggered in the editor whenever clicking on any of the buttons, so I had to add a way to prevent this by registering a beforeCommandExec event to cancel the blur ajax request. Also, the content was being erased when clicking on the save button when having an ajax blur event, so this was fixing by tweaking some references to some variables.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: