MyBB Community Forums

Full Version: Editor - problem with styling
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to reproduce:
1) copy text from website into editor
2) click on Post Thread
3) check your post - you can see ..... etc.

4) OK, now click on "Full edit" - and check your text again - you cannot see ..... 

5) ok, click on "Update post"
6) Check your updated post - now you can see again .....  

You can see it here:

PS - same problem with quick edit
There are 2 ways to fix it:
1- Edit SCEditor:
in jscripts/bbcodes_sceditor.js
			if(element[0].nodeName.toLowerCase() !== 'font' || !(font = element.attr('face')))
				font = element.css('font-family');
if(element[0].nodeName.toLowerCase() !== 'font' || !(font = element.attr('face')))
				font = element.css('font-family');

			fonts = font.split(',');
			font = fonts[0];

2: Edit Cass Parser: (it is better than 1)
in inc/class_parser.php
$nestable_mycode['font']['regex'] = "#\[font=([a-z0-9 ,\-_]+)\](.*?)\[/font\]#si";
replace to:
$nestable_mycode['font']['regex'] = "#\[font=([a-z0-9 ,\-_'\"]+)\](.*?)\[/font\]#si";
Thanks, I will test it. I hope that mybb team will push this into github and you will send your PR Wink

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github:

Thanks for contributing to MyBB!

The MyBB Group