I agree with Jaydip Datta . Journal editing is a hard, time-consuming and thankless job. I do not think that those who do this job should be punished by banning them from their own journals. However, editors should behave ethical and apply the same standards to their own papers as they apply for all others.
Editors can publish their own articles in the journals they edit by completing review process, making corrections suggested by referee and there is no harm.That should not be a democratic view.
The key words are 'keep publishing in the journals they edit.' I think there is a problem if these editors do not diversify their publication outlets. It raises suspicions that they may be getting an easy pass in the review process.
There is no harm, so long as everything is done objectively. However, I will be cautious not to continuously publish only in one journal, particularly where am the editor. This can raise eyebrows.
I agree with all of the above comments. Notably, the editorial assignment is time-consuming, tedious, and non-beneficial (except pride and fame to highlight in the profile) in the publishing world. However, we witness some editors keep publishing dozen of their own/collaborative articles in journals where they serve as editors. It is fine if proper peer-review processes are completed "without bias." One can suspect this biasing in several occasions/journals, where plenty of articles are being accepted immediately (same-day), and the role of external peer-reviewer is mostly nothing in these instances. So, journals can enforce a limitation (fixing a maximum number of articles per calendar year) for their editors. On the one hand, this may avoid the tendency of over/self-publishing.