Updated script to update contenteditable areas.