MyBB Community Forums

Full Version: Copied text shrinked to Oblivion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is a 'bug' I guess i have encountered since 1.8.33 where you copy a text from an other website to the WYSIWYG Editor, the copied text is shrinked to a very small format, almost invisible. Solution I'm using is the Clear Formatting Option but I would appreciate a more automatic approach is the future if possible

I could provide a Video Capture if my explanation is not clear
That bug is related to sceditor and to an extent - evolving browser standards.  Been around well before 1833 in one form or another. 

There's quite a few threads and posts on this a search will reveal, you might want to check them out.  Although not sure you'll find an all-inclusive solution in the 1.8 series.  Forcing source mode in the editor works to remove pasted formatting, but is considered intrusive by many.
A bug report that has not been evaluated. It is neither Pushed nor Rejected.
https://community.mybb.com/thread-236534.html
This post is another example showing why a fix needs to be made. The OP's quoted text is not readable.
https://community.mybb.com/thread-239138.html

Here's the simple fix. I've been using it for a while on my forum successfully.

inc/class_parser.php
fix size parameter, type size too small in pasted text

find beginning line 831
		if($size < 1)
		{
			$size = 1;
		}
and replace with
		if($size < 7) //core edit, original value is 1
		{
			$size = 7; //core edit, original value is 1
		}