We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

tinyMCE not inserting blank spaces into new table cells!

Development and Programming

james Brown's avatar
james Brown
492 posts
16 years ago
james Brown's avatar james Brown

I am having troubles with newly created table cells not having   put into them. So what happens is if I create a new table, put in text into 1 cell and leave the others blank, save the entry, then open it again… only the cell that had text put into it is accessible. The others don’t have the little dotted borders around the cells or anything so I can’t type into them. Going into the HTML and putting in   for all the blank cells does fix the problem. and then the cells become editable again. In the older versions of tinymce, I thought I remember it putting in   for new table cells. Is there a setting I am missing?

I am using the newest version of tinyMCE, 3.2.0.2, and LG TinyMCE v1.3.2.

I noticed that the demo on the tinymce site when I insert a new table and give it a width of 100%, it generates this code:

<table border="0" width="100%">
<tbody>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>

Where as my install generates this code:

<table border="0" width="100%">
<tbody>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>

So is there some setting that is stripping out the   from the tables?

These are my settings:

button_tile_map : true,
editor_selector : 'lg_mceEditor',
mode:'textareas',
theme : 'advanced',

apply_source_formatting : true,
convert_fonts_to_spans : true,
convert_newlines_to_brs : false,
fix_list_elements : true,
fix_table_elements : true,
fix_nesting : true,
forced_root_block : false,
cleanup_on_startup : true,
heading_clear_tag : 'p',
verify_html : true,
remove_trailing_nbsp : false,

relative_urls : false,
remove_script_host : true,

content_css : "/style.css",

theme_advanced_blockformats : 'p,h2,h3,h4',
theme_advanced_toolbar_location : 'top',
theme_advanced_toolbar_align : 'left',
theme_advanced_statusbar_location : 'bottom',
theme_advanced_resize_horizontal : false,
theme_advanced_resizing : true,

plugins : 'safari,pagebreak,spellchecker,style,table,inlinepopups,media,imagemanager,contextmenu,paste,'
+ 'fullscreen,nonbreaking,xhtmlxtras,advhr,advimage,advlink,paste,visualchars,nonbreaking,xhtmlxtras',
advimage_styles:'Align Left=left;Alight Right=right',
advlink_styles : 'Code=code;Excel=excel;Flash=flash;Sound=sound;Office=office;PDF=pdf;Image=image;PowerPoint=powerpoint;Word=word;Video=video',
theme_advanced_buttons1 : 'cut,copy,pastetext,pasteword,undo,redo,|,formatselect,fontsizeselect,forecolor,|,bold,italic,'
+ '|,link,unlink,|,image,cleanup,removeformat,spellchecker',
theme_advanced_buttons2 : 'bullist,numlist,outdent,indent,hr,justifyleft,justifycenter,justifyright,justifyfull,code,visualaid,fullscreen',
theme_advanced_buttons3 : 'tablecontrols',

I also have a bunch of valid_elements and entities (which I left out because there are a ton!). But these are the defaults that were in Levi’s base extension settings.

       
james Brown's avatar
james Brown
492 posts
16 years ago
james Brown's avatar james Brown

can anyone help me out? it’s driving me nuts!

       
james Brown's avatar
james Brown
492 posts
16 years ago
james Brown's avatar james Brown

anyone? i’m dying!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.