Reputation: 1135
I want to add a paragraph after every insertion of a table which will hold the table name of the table in the Tinymce plugin.
Have been able to customize the table however there is no solution to add an html element.
Upvotes: 1
Views: 788
Reputation: 1135
You can go into the plugin folder and edit the source directly -
for(i='<table id="__mce"><tbody>',n=0;t>n;n++){
for(i+="<tr>",r=0;e>r;r++)i+="<td>"+(s.ie&&s.ie<10?" ":"<br>")+"</td>";i+="</tr>"
}
return i+="</tbody></table>"
Please edit this to -
for(i='<table id="__mce"><tbody>',n=0;t>n;n++){
for(i+="<tr>",r=0;e>r;r++)i+="<td>"+(s.ie&&s.ie<10?" ":"<br>")+"</td>";i+="</tr>"
}
return i+="</tbody></table><p>table name</p>"
This will result in "table name" getting printed in the newline.
Upvotes: 1