Creates a listener for the block content to change and sets a property