Listen to the contentDom event to handle correctly setData calls

Pull request
https://github.com/noam-si/confighelper/commit/19fd0f8482b3c56339cf015ab5b9d95687d64a83
but I don't know how to commit only this one instead of the whole pull
request