Home Forums General XMetaL Discussion Insert Table Button XSD Reply To: Insert Table Button XSD

Derek Read

Reply to: Insert Table Button XSD

Here's a basic sample Schema that defines a set of elements that will be recognized automatically as an HTML table. It defines more than is necessary to provide basic HTML table editing capabilities.

The Insert Table options (menu and toolbar) will be enabled when the insertion point is inside a document containing a element. The Table Properities dialog (accessed via the Table menu and context menu) will be enabled as well. Some properties will be disabled in the Table Properties dialog because corresponding attributes are not defined for them.



 
   
     
       
       
         
           
             
             
               
                 
                   
                     
                       
                         
                       

                     

                   

                 

               

             

             
               
                 
                   
                     
                       
                         
                       

                     

                   

                 

               

             

             
               
                 
                   
                     
                       
                         
                       

                     

                   

                 

               

             

           

           
           
         

       

     

   

 

With this in place (or a schema that defines similar elements: table, tr, td) you do not need to use DOM methods. You can simply call the API InsertTable() with the appropriate parameters. However, that is only if you need to script the insertion of the table for some reason. The Insert Table button or menu item will suffice for most users.

Reply

Products
Downloads
Support