Hold down Ctrl and drag a rectangle the size you wish to fill with the texture.
Press Ctrl + S. It will also save all the changes you made to your level.