HomePhabricator

Re-add event listeners to images after a finished VE edit

Description

Re-add event listeners to images after a finished VE edit

Currently, if VisualEditor saved an edit, it replaces the current content
with the new content, which removes all already added event listeners, e.g.
on thumbs, added by MMV.

Add a new hook handler to the postEdit JavaScript hook to re-add all event
handlers to the thumb images to cover this case and enable MMV on a page
after a finished VE edit.

Bug: T97010
Change-Id: Ic1ee0b52265363978640358510cab89db4de2bb8

Details

Provenance
FlorianAuthored on
TgrCommitted on Aug 14 2015, 12:19 AM
Parents
rEMMV5541d11b88fe: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
Ic1ee0b52265363978640358510cab89db4de2bb8