MyBB Community Forums
[Pushed] Editor - problem with styling - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Pushed (https://community.mybb.com/forum-183.html)
+----- Thread: [Pushed] Editor - problem with styling (/thread-157491.html)



Editor - problem with styling - Eldenroot - 2014-08-14

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: http://community.mybb.com/thread-157489-post-1092551.html#pid1092551


PS - same problem with quick edit


RE: Editor - problem with styling - ATofighi - 2014-08-14

There are 2 ways to fix it:
1- Edit SCEditor:
in jscripts/bbcodes_sceditor.js
find:
			if(element[0].nodeName.toLowerCase() !== 'font' || !(font = element.attr('face')))
				font = element.css('font-family');
Replace:
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
find:
$nestable_mycode['font']['regex'] = "#\[font=([a-z0-9 ,\-_]+)\](.*?)\[/font\]#si";
replace to:
$nestable_mycode['font']['regex'] = "#\[font=([a-z0-9 ,\-_'\"]+)\](.*?)\[/font\]#si";



RE: Editor - problem with styling - Eldenroot - 2014-08-15

Thanks, I will test it. I hope that mybb team will push this into github and you will send your PR Wink


RE: Editor - problem with styling - Destroy666 - 2014-08-16

Hi,

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: https://github.com/mybb/mybb/issues/1221

Thanks for contributing to MyBB!

Regards,
The MyBB Group