1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Bugtracker #5046 - handle display of multi-page docs generated with TinyMCE

This commit is contained in:
e107steved 2010-09-16 13:05:11 +00:00
parent 55da82402c
commit 4befadac10

View File

@ -226,6 +226,17 @@ class pageClass
if(preg_match_all("/\[newpage.*?\]/si", $this -> pageText, $pt))
{
if (substr($this->pageText, 0, 6) == '[html]')
{ // Need to strip html bbcode from wysiwyg on multi-page docs (handled automatically on single pages)
if (substr($this->pageText, -7, 7) == '[/html]')
{
$this->pageText = substr($this->pageText, 6, -7);
}
else
{
$this->pageText = substr($this->pageText, 6);
}
}
$pages = preg_split("/\[newpage.*?\]/si", $this -> pageText, -1, PREG_SPLIT_NO_EMPTY);
$this -> multipageFlag = TRUE;
}