move windowIsClosing trigger to TodeCommonEditor and ensuer that the code editor is included