mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Bugtracker #5046 - handle display of multi-page docs generated with TinyMCE
This commit is contained in:
parent
55da82402c
commit
4befadac10
11
page.php
11
page.php
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user