Welcome Guest Search | Active Topics | Sign In | Register

HTML Editor Table handling Options
Dre
Posted: Monday, February 13, 2012 6:46:10 AM
Rank: Newbie
Groups: Member

Joined: 2/13/2012
Posts: 1
Hi re HTML Editor Table handling

tried online demo inserting a table of n cols and 1 row; then tried to insert another table into col1,row1 doesnt seems to work online.

I am looking for an html editor to create an editorial app. for our users. It needs to have the capability to create text columns as in a newspaper.

The requirement is for about a 10 to 15 column "main-table" per article. Often the first column of that table will contain a leader panel - as in a newspaper - giving an intro to the article, and this 2nd leader-table, of 2 columns and 1 row, will span 2 or 3 rows of the main-table rows.

Can essentialobjects do this
Thanks
Dre
eo_support
Posted: Monday, February 13, 2012 9:36:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You won't be able to do it directly because "Insert Table" and "Edit Table" are the same button. So if you click the table button when you are currently inside col1, row1, then it will assume that you want to edit the current table instead of inserting a child table.

There are two ways to do what you wanted to do:

1. Place the cursor somewhere else, then insert a table there. After that you can drag the second table into the first table. This is the easiest way because it does not require any additional code;

2. Implement a custom command or provide a custom dialog to handle the built-in insert table command. The basic idea is you can get the current DOM element in the editor with this function:

http://www.essentialobjects.com/doc/1/jsdoc.public.editor.getcurrentelement.aspx

Once you have the current DOM element (for example, a TD element if you are inside a table cell), you can call DOM interface to modify/add elements to the editor. You may also need a custom dialog for this. See here for more information about how to use custom dialog:

http://www.essentialobjects.com/doc/1/editor/customize_dialog.aspx

Hope this helps. Please feel free to let us know if you have any more questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.