Added option to clear the editor or not

I propose to test the necessity of cleaning the editor