Depending on the magazine and reviewers, this process takes different time. In some cases, the "with editor" may enter the "under review" state after one day, while others take two months or more.
If you accept the manuscript directly after you have the status of "editor", it is of course possible, but usually you need to meet some special conditions, such as excellent content of the manuscript or no problems encountered in the pre-trial process.
Therefore, when the manuscript is in the state of "editing", it needs to wait patiently for a period of time until the editor finishes all the processing procedures and finally gives a decision on whether to accept or reject it.