Implements automatic stylesheet updating in editor.