Hi
I need content_of_table module works with Filtered HTML input format.
So what tags should I add to the Filtered HTML input format?

Comments

deviantintegral’s picture

First, place the Table of Contents and Heading Anchors filters after the filtered HTML format. That way nothing being output from the filter itself will need to be allowed to users directly. For example, the TOC is in a div tag, which you probably don't want users to be able to use.

Then, in the filtered HTML settings, put in whatever heading values you want your users to use. Many will just do h1-h6, I tend to do h3-h6 so that the headings don't compete with node title headings.

HTH,
--Andrew

david@thrale.com’s picture

Title: What tags should I add to the Filtered HTML? » what tags should I add to the Filtered HTML ?

I have a similar problem. TOC works fine in full html mode, but with the more secure filtered mode the TOC border and shaded background are absent and the font is the same as body text, i.e larger, and the heading "Table of contents [hide]" is erroneously left aligned.

My filter order is...

Table of Contents	
Headings to Anchors	
Footnotes [fn]...[/fn]	
URL filter	
HTML filter	
Line break converter	
Inline images	
Hide email addresses	
Table alternate row filter	
Tablemanager filter	
URL Replace Filter

I changed this as I think is recommended here to ...

Footnotes [fn]...[/fn]	
URL filter	
HTML filter	
Headings to Anchors	
Table of Contents	
Line break converter	
Inline images	
Hide email addresses	
Table alternate row filter	
Tablemanager filter	
URL Replace Filter

... and the TOC completely disappears. BTW I have activated H2 & H3 which are the only headings I use.

Could anyone suggest a solution? Thanks in advance!

avpaderno’s picture

Title: what tags should I add to the Filtered HTML ? » What tags should I add to the Filtered HTML?
Version: 6.x-2.x-dev » 5.x-2.2
deviantintegral’s picture

Title: what tags should I add to the Filtered HTML ? » What tags should I add to the Filtered HTML?

Here is the order I have on a D5 site I have in production:

  1. HTML Corrector
  2. HTML filter
  3. Drupalbreak Enabler
  4. Inline images
  5. Headings to Anchors
  6. Table of Contents
  7. URL filter
  8. URL Replace Flter
  9. Table alternate row filter

We look to have many of the same filters. Can you try disabling filters and then re-enabling them one at a time to determine which one is causing the issue?

smokris’s picture

Version: 5.x-2.2 » 6.x-2.x-dev

If I understand correctly, Drupal 6.x's "HTML Filter" input filter is hardcoded to strip all HTML Comments, so placing it before Table Of Contents will not work.

However, http://drupal.org/project/htmLawed is an alternative to "HTML Filter", which can be configured to pass HTML Comments through, and should work with Table Of Contents.

AlexisWilke’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Assigned: Unassigned » AlexisWilke
Status: Active » Fixed

Get 3.x-dev and use [toc ...] instead.

Thank you.
Alexis Wilke

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.