Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22142

ezoe. few items are deleted in online editor when click del key

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 5.1, 2013.07, 5.2, 2013.09
    • Fix Version/s: None
    • Labels:
    • Environment:

      Google chrome Version 31.0.1650.63

      Description

      in editor , when i have few embedded objects which goes one by one and try to delete first one, the second is deleted too. To fix this key stuck should be increased (50ms now, 150 has to be)

      suggested patch:
      https://github.com/ezsystems/ezpublish-legacy/blob/master/extension/ezoe/design/standard/javascript/themes/ez/editor_template.js#L2067

      // Avoid that several embed tags are removed at once if they are placed side by side
      if ( !this.__recursion )
      {
      this.__recursion = true;
      n.parentNode.removeChild( n );
      – setTimeout(BIND( function()

      { this.__recursion = false; }, this ), 50);
      ++ setTimeout(BIND( function(){ this.__recursion = false; }

      , this ), 150);
      ed.nodeChanged();
      }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Vlad Nikitin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: