create new tag
, view all tags
ALERT! NOTE: This is a SupplementalDocument topic which is not included with the official TWiki distribution. Please help maintain high quality documentation by fixing any errors or incomplete content. Put questions and suggestions concerning the documentation of this topic in the comments section below! Use the Support web for problems you are having using TWiki.

FAQ: How do I convert a table from HTML to TML?

You often find yourself in the situation that you have a table in HTML.

Either because you copy it from another web page or from a tool that has exported a table to HTML.

Or you have been using the Wysiwyg editor in TWiki 4.2.X and done something that cannot be implemented by simple TML (TWiki Markup Language) notation. The latter often happens if you accidentally have pulled the side of the table in Wysiwyg and made it wider in the editor.


These steps will get most tables in HTML converted to TML. Requires TWiki 4.2.0 or 4.1.X with a version of the Wysiwyg editor from around June 2008.

I just tried with a simple Excel. And this method works even in Internet Explorer.

  • Step 1: Copy the excel table to the paste buffer
  • Step 2: Edit the TWiki topic with Wysiwyg
  • Step 3. Paste in the table
  • Step 4: Save
  • Step 5: Raw Edit
  • Step 6: Delete all the attributes from the HTML <table ...> tag leaving only <table>
  • Step 7: Save the topic
  • Step 8: Edit again in Wysiwyg.
  • Step 9: Save without editing anything
  • Step 10: You should now have a clean TML table

If the method does not work then it can be because you need a newer version of Wysiwyg than the one that comes with 4.2.0. I tested this with a version from June 2008.

Back to: TWikiFAQ

-- Contributors:

Comments & Questions about this Supplemental Document Topic

Alternatively, you can delete all of the formatting from the table buttons in the Wysiwyg editor. Click on your table, then click on the button that usually creates a new table and delete all the formatting. Repeat for columns/rows.

-- ChrisBarna - 11 Aug 2008

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-08-12 - SeanCMorgan
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.