Forum post quotation block quote format button leads to HTML code in Visual editor
Hi Ray --
I was writing a post for my class in a group forum using the Visual Editor, and wanted to put some of my content in a quotation/block quote. I selected text, then hit the quotation mark icon in the formatting toolbar. Doing so seemed to insert paragraph HTML tags in the resulting post. i've attached photos of the way the posts looks in the forum and via the email notification
it also looks like the line breaks rendered correctly in the email notification, but not in the BbPress version of the post
Updated by Raymond Hoh 3 months ago
- Category name set to Group Forums
- Status changed from Assigned to Staged for Production Release
- Target version set to 2.2.3
If you look at the screenshots, you will notice the
<p dir="auto"> attribute in the forum posts. My guess is the visual editor is adding the
<p dir="auto"> attribute during pastes. The
dir="auto" part is not allowed in bbPress by default, so bbPress disallows the entire paragraph tag as a result and renders the triangle brackets instead.
To address this, we can tell bbPress to allow the
<p dir="XXX"> attribute and this will let bbPress render these paragraphs correctly. See https://github.com/cuny-academic-commons/cac/commit/05b4f9cd12ad1383d8a8c0db2c38481dc668624f . This will be part of next Tuesday's release. Unfortunately, this will not fix existing forum posts with this problem.
You will need to edit the forum posts and use the "Text" tab to manually fix up the text by replacing:
Let me know if you need some help with this.