Is there any way of adjusting settings to prevent members from changing fonts, font sizes & colours? As they can sometimes be a little too creative, which can make things a bit distracting sometimes...
Thanks,
Greg
.messageList .messageText span
{
font-family:@messageText.font-family !important;
font-size:@messageText.font-size !important;
color:@body.color !important;
}
+1If anyone finds a workaround for this please let us know. Easy to follow instructions would be very helpful.
disable text colour-formatting in editorive had an edit posted for ages to remove colour functionality from tinymce.
Apologies for bumping this up, but I can vouch for this--it works on font color (which I needed) and the others. The key was adding "span" to the CSS above.Code:.messageList .messageText span { font-family:@messageText.font-family !important; font-size:@messageText.font-size !important; color:@body.color !important; }
If you remove any of the declarations, you can allow them to change whichever they want. It basically just replaces the <span> inline style that BBCode produces.
/* Remove editor buttons */
.redactor_btn_container_fontfamily {display: none;}
.redactor_btn_container_fontsize {display: none;}
.redactor_btn_container_fontcolor {display: none;}
Ooooh, that's interesting--thanks! Indeed, I will take a look at that. That would also help avoid member confusion since in the editor, the colored text still remains when editing, but disappears upon display.You can also use this add-on to remove any pasted BB Code you wish to have removed once the post is saved.
https://xenforo.com/community/resources/bb-code-parser.2796/
Many years ago, I added CSS to get rid of "weirdness" in member signatures
/* Prevent colored body text */
.block--messages .message span, .block--messages .block-row span
{
color: @xf-textColor !important;
}
.bbWrapper span {color: @xf-textColor !important;}
We use essential cookies to make this site work, and optional cookies to enhance your experience.