Normally, editors want your work to be as polished as you can make it, before they set eyes on it.
That means: No typos. No grammar mistakes. Correct word usage. And they especially don’t want to see a first draft.
Then they find what you miss, but they can’t write the book for you. They just don’t have the time for that.
To get your work as polished as possible, I suggest a critique group, beta reader, or critique partner.
Critique groups are great for finding: Grammar mistakes. Wrong word usage. And making suggestions on improving your work.
What they can’t do is see the bigger picture, because they get it one piece at a time.
If you want someone to see the whole thing, then you need a beta reader or a critique partner.
Beta readers: Read the entire MS and make suggest for the plot and such. They can also point out continuity errors.
But they don’t fix grammar problems.
Critique partners: You trade work. They will take a chapter of yours for a chapter of their’s to do a critique on. Some people prefer this approach to polishing their work.
For more help on what an editor does, check out these links:
There is no hard and fast rule to writing a book. However, you need to make your manuscript as professional as possible before you let an publisher see it.
Another suggestion is to take classes online. There are even classes to help you work on your manuscript.
Some free online classes: