Fixed Editor removes a line break after list items...

  • Line 1
  • Line 2
  • Line 3
  • Line 4
  • Line 5
I hit enter twice to get here.
Next line.

  • Line 1
  • Line 2
  • Line 3
  • Line 4
  • Line 5
I hit entire three times to get here.

Verified.
Even if you put 2 blank lines after the list, both are removed.
 
IF it's an issue due to the editor, I am unsure whether XenForo can readily apply a fix to it. Either way, there's a 0.0.0.1 update available to TinyMCE.
 
This problem seems to be fixable:

Class: XenForo_BbCode_Formatter_Wysiwyg
Function: public function filterFinalOutput($output)

Search:
Code:
        $output = preg_replace('#<p>[ \t\r\n]*</p>#', '<p>' . $emptyParaText . '</p>', $output);

Add BELOW:
Code:
        $output = preg_replace('#(</(ul|ol)>)\s</p>#', '$1<p>' . $emptyParaText . '</p>', $output);
 
This problem seems to be fixable:

Class: XenForo_BbCode_Formatter_Wysiwyg
Function: public function filterFinalOutput($output)

Search:
Code:
        $output = preg_replace('#<p>[ \t\r\n]*</p>#', '<p>' . $emptyParaText . '</p>', $output);

Add BELOW:
Code:
        $output = preg_replace('#(</(ul|ol)>)\s</p>#', '$1<p>' . $emptyParaText . '</p>', $output);
Thanks breh
 
Top Bottom