maketoc does not work with wysiwyg
- Status
- Pending
- Subject
- maketoc does not work with wysiwyg
- Version
- 6.x
7.x - Category
- Error
- Feature
- WYSIWYG (What You See is What You Get)
- Submitted by
- Nelson Ko
- Lastmod by
- beanstone
- Rating
- Description
- maketoc does not generate any table of contents (only the heading "Table of Contents" shows) on a wysiwyg page
- Solution
- fix in r30196
- Workaround
- Version 7: Problem is, that <h1> is translated to wiki-syntax, but <h1 something> isn't.
In (tikifolder)/lib/tikilib.php insertCopy to clipboard$htmlheadersearch = '/<h([1-6])\s*([^<]+)\s*>\s*([^<]+)\s*<\/h[1-6]>/im'; preg_match_all($htmlheadersearch, $data, $htmlheaders); $nbhh=count($htmlheaders[1]); for ($i = 0; $i < $nbhh; $i++) { $htmlheaderreplace = ''; for ($j = 0; $j < $htmlheaders[1][$i]; $j++) { $htmlheaderreplace .= '!'; } $htmlheaderreplace .= $htmlheaders[3][$i]; $data = str_replace($htmlheaders[0][$i], $htmlheaderreplace, $data); }
after Line 5843 - Importance
- 9 high
- Priority
- 45
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3589
- Created
- Friday 15 October, 2010 22:09:39 UTC
by Nelson Ko - LastModif
- Monday 24 October, 2011 11:10:29 UTC