I just upgraded the module to latest CVS (thanks for the recent fixes!).
I just tried to submit the form, but I got the error:
List of tags allowed in table headers cannot exceed 128 chars.
The problem is that the default is more than that:
define('TABLEOFCONTENTS_ALLOWED_TAGS', '<em> <i> <strong> <b> <u> <del> <ins> <sub> <sup> <cite> <strike> <s> <tt> <span> <font> <abbr> <acronym> <dfn> <q> <bdo> <big> <small>');
Check the FAPI docs on how to adjust the default max length.
Comments
Comment #1
jennifer.chang commentedAlso, many tags in that list do not belong to a TOC. Worse: many are obsolete non-semantic HTML tags (strike, big, font...) superseded by css.
You might want to revise the define() accordingly as well.
Comment #2
AlexisWilke commentedHi Jennifer,
Okay, I put a length of 2048. There was no constraint before, so I'm not too sure why your system forced it 128. You may have a setup somewhere that forces a default. Another module or your Apache/PHP setup?
The list of tags can be changed by you. In other words, if there are tags you do not like, you can remove them from the interface which is quite handy. Many people have even asked to not allow any tags, which I think is bad if you wanted to be able to do some italicizing or bolding (although in most cases the H1 to H6 tags will not really allow that, your stylesheet might.)
In the defaults, I put all the HTML 4.1 tags that could fit including deprecated tags.
If you are using an editor, such as FCKeditor, then you will get some <font> tags. It think they properly use CSS for <strike>.
Again, that too you can "fix" yourself by editing the code... (or writing a filter that does that for you.)
In any event, the Table of Contents uses what YOU wrote, so if you forbid X, Y and Z tags in your code, it will never appear in the table of contents (i.e. the module does not add tags!)
Thank you.
Alexis