Fix registering codemirror notification

Dynamically add codemirror change notification handling, so spell
checking also works for newly created or redefined cells.