mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
TinyMce: Fixes an issue where additional line-breaks were being added when converting to HTML.
This commit is contained in:
@@ -798,7 +798,8 @@ class e_parse_shortcode
|
||||
}
|
||||
|
||||
|
||||
$ret = preg_replace_callback('#\{(\S[^\x02]*?\S)\}#', array(&$this, 'doCode'), $text);
|
||||
$ret = preg_replace_callback('#\{([A-Z][^\x02]*?\S)\}#', array(&$this, 'doCode'), $text); // must always start with uppercase letter
|
||||
// $ret = preg_replace_callback('#\{(\S[^\x02]*?\S)\}#', array(&$this, 'doCode'), $text);
|
||||
$this->parseSCFiles = $saveParseSCFiles; // Restore previous value
|
||||
$this->addedCodes = $saveCodes;
|
||||
$this->eVars = $saveVars; // restore eVars
|
||||
@@ -842,6 +843,7 @@ class e_parse_shortcode
|
||||
return $matches[0];
|
||||
}
|
||||
|
||||
|
||||
if(preg_match('/^([A-Z_]*):(.*)/', $matches[1], $newMatch))
|
||||
{
|
||||
$fullShortcodeKey = $newMatch[0];
|
||||
|
Reference in New Issue
Block a user