Rebinding event handlers after certain actions took place
authorAlexander Ebert <ebert@woltlab.com>
Thu, 8 Jan 2015 20:45:18 +0000 (21:45 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 8 Jan 2015 20:45:18 +0000 (21:45 +0100)
commit7cd02a596517ad271873b9be79768c9fd234d228
tree529d4303f9a6d691eb45c61357fe3f3a485bb540
parent2f0ecbba120e25aecda75f48f0c35f12199d7700
Rebinding event handlers after certain actions took place

Undo/Redo are two examples which cause issues because they internally work by saving the DOM and replacing it with the stored content. Given the fact that this works on a string, all event handlers are lost and must be reattached once the action has completed.

Luckily we can hook into this.observe.load() which is always invoked after such an action took place.
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js
wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js