Assume an editor has sent out a manuscript to reviewers. Let's say the manuscript has potential but with mixed reviews; some reviewers say accept whilst others recommend revision/reject. The editor recommends re-submission. So the manuscript goes through the usual revision-resubmission-revision-... process.
As an editor, does he/she need to all reviewers to be thoroughly happy before accepting the manuscript? Can he/she accept/reject the manuscript based on the majority rule?
Note, some journals have a limit on the maximum number of re-submissions, meaning the re-submission process cannot continue forever.