-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
I do not know why (didn't studied your code), had some problems when the content had newlines "\n". To fix it changed the "process" function to:
public function process()
{
$args = func_get_args();
$text = array_shift($args);
$text = trim(preg_replace('/\s+/', ' ', $text)); // Added this line to this function
while(true) {
$sc = $this->getShortCodes($text);
if (empty($sc)) {
break;
}
$text = $this->processCodes($text, $sc, $args);
}
return $text;
}
As i said, i didn't studie your code, so this is not the best solution. (btw, I used your plugin with tinymce.)