implemented an undomanager for the contexteditor,
but sometimes he makes more than one step back- or forward and the
contexteditor don't repaint after a toggle-undo