Hi,
I've discovered some issues with creating and editing posts on a community forum, such as extra html tags when a user edits their post or reply. So how can I remove the rich text editor from creating and editing community forum posts?
Not an elegant solution but I created a JavaScript function to remove all the extra HTML tags added by the Rich Text Editor.
function removeStyling(parentClass) {
// Function to remove inline styling from HTML text.
$(parentClass).find('div, span, ul, ol, li, p, h1, h2, h3, h4, h5, h6, a, strong, em').removeAttr('style');
$(parentClass).find('img').removeAttr('height, width, style');
}
Fubar
62
Super User 2025 Season 2
Lucas001
48
Super User 2025 Season 2
KevinGador
44
Super User 2025 Season 2