Fixed Editor kills tabs

Kirby

Well-known member
Affected version
2.0 DP10
When I was trying to post
PHP:
$container['oAuth'] = function($c)
{
	$class = $this->extendClass('XF\SubContainer\OAuth');
	return new $class($c, $this);
};

$container['oAuth'] = function($c)
{
	$class = $this->extendClass('XF\SubContainer\OAuth');
	return new $class($c, $this);
};
in another bug report I noticed that the editor killed the tabs (Chrome 60.0.3112.101/Windows 7 64bit).
This also happens on a local DP10 installation.
 
Editor kills user-inserted white spaces, too. Impossible to type anything in normal text (NOT code) that is not flush left. Not even leading tabs in normal paragraphs are supported. Definitely a creativity killer.
 
This should be fixed (for the next roll out here). Note specifically that we will only try to maintain white space if what is being pasted is plain text (or within a <pre> tag). In my tests, pasting from something like PHPStorm pastes into a <pre> tag, where as Sublime Text pastes as plain text.
 
Top Bottom