Issue #2342053 by eshta: Update editHTML event handlers when replacing.