suggest: about cell class name of table.

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
ssbbstw
 
 
Posts: 81
Joined: Fri Feb 03, 2017 9:49 am

suggest: about cell class name of table.

Post by ssbbstw »

I have a <table> and 3 <tr>.
Each time the <td> content is modified,
The class name of cell is change from 'cell1', 'cell2', 'cell3'.....
I must modify my javascript when publish html every time.

Can you give me a 'class' attribute to set? Thank you!!
I'm come from Taiwan.
User avatar
Pablo
 
Posts: 21716
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: suggest: about cell class name of table.

Post by Pablo »

The name of the class of a table cell depends on the content of the cell and the context of the table within the page.
For example, if all styles of the cell are the same as the table then no class may be added. The name of the class is dynamically determined each time the page is generated.
Also, there is no guarantee that the cell is always named the same. This may change in future updates.

So, if you use a custom script then it's better to use a different way of querying the cell, for example based on its index.
ssbbstw
 
 
Posts: 81
Joined: Fri Feb 03, 2017 9:49 am

Re: suggest: about cell class name of table.

Post by ssbbstw »

I like use class ex: $('.cell2').html('....');
I'm come from Taiwan.
User avatar
Pablo
 
Posts: 21716
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: suggest: about cell class name of table.

Post by Pablo »

Sorry, you will have to find any other way. The class name of the cell is not guaranteed to be the same in all cases.
Post Reply