• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

Digital Doctor

Well-known member
#2
  • 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.
 

Shamil

Well-known member
#7
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.
 

cclaerhout

Well-known member
#9
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);
 

DRE

Well-known member
#10
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