Add flush method to output class in editor