It’s good even great to get editors to accept your work and publish it even when some things were edited out because they were “inappropriate”. The editor must make a judgement call and cut the inappropriate stuff out. This is done so the readers are served. Most of the article is suitable, but some additional things in the article may not be serving the readers, so are slashed out of the article. The edited parts seemed innocuous, but then I’m not the reader and the editor has an obligation that their readers are served.