The forum operates in read-only mode. Please head to StackOverflow for support.
<ul> <li>This is an item</li> <li>This is where the table should be</li> <table> <tbody> <tr> <td>This is where the table actually gets inserted.</td> </tr> </tbody> </table> </ul>
... oEditor.FCK.InsertElement( table ) ;
... if( oEditor.FCK.Selection.GetParentElement().nodeName == 'LI' ) { oLi = oEditor.FCKSelection.MoveToAncestorNode( 'LI' ) ; oLi.appendChild(table); } else oEditor.FCK.InsertElement( table ) ;
Re: Table Not Inserted In List Item
%installpath%/fckeditor/editor/dialog/fck_table.html
I modified the line in the Ok() method from:
and changed it to:
... if( oEditor.FCK.Selection.GetParentElement().nodeName == 'LI' ) { oLi = oEditor.FCKSelection.MoveToAncestorNode( 'LI' ) ; oLi.appendChild(table); } else oEditor.FCK.InsertElement( table ) ;