This is an unusual one (I think).
We run a news site, and sometimes when editing posts (using the classic editor, not the new block one) we find that a paragraph in the post we are editing has somehow become wrapped in a bunch of spans containing bootstrap css classes.
i.e. the paragraph becomes this
<p><span style="color: var(--bs-body-color); font-family: var(--bs-body-font-family); font-size: var(--bs-body-font-size); text-align: var(--bs-body-text-align); background-color: var(--bs-body-bg);">
{CONTENT}
</span></p>`
When it was originally just a normal <p>{CONTENT}</p>
.
What we’ve discovered so far:
- The markup seems to be added when a post is saved
- It isn’t just a case of cut-and-paste – the editor can just typing into the article
- The editor doesn’t have to be editing the paragraph which changes
- Searching the server for "body-font-family" doesn’t return results in php or js files
- Searching the client (i.e. browser including any externally loaded files) for "body-font-family" also doesn’t return any results
- Multiple editors running multiple browsers have seen this so it’s not a plug-in in the browser
- It doesn’t happen all the time
- We can spot no pattern between the posts and paragraphs which have these tags added
Any/all suggestions are very welcome!