We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6890
    • 21 Posts
    Since I’ve upgrading modx to 2.0.7 TinyMCE has been having issues with templates. The template selection dialog and preview is correct, but the actual insertion into the text area is not correct...

    For example. A simple Table template of:
    <table>
    	<thead>
    		<tr>
    			<th>No</th>
    			<th>Field One</th>
    			<th>Field Two</th>
    			<th>Field Three</th>
    		</tr>
    	</thead>
    	<tbody>
    		<tr>
    			<td>1</td>
    			<td>Item One</td>
    			<td>Item Two</td>
    			<td>Item Three</td>
    		</tr>
    		<tr class="alt">
    			<td>2</td>
    			<td>Item One</td>
    			<td>Item Two</td>
    			<td>Item Three</td>
    		</tr>
    			<tr>
    			<td>3</td>
    			<td>Item One</td>
    			<td>Item Two</td>
    			<td>Item Three</td>
    		</tr>
    		<tr class="alt">
    			<td>4</td>
    			<td>Item One</td>
    			<td>Item Two</td>
    			<td>Item Three</td>
    		</tr>
    		<tr>
    			<td>5</td>
    			<td>Item One</td>
    			<td>Item Two</td>
    			<td>Item Three</td>
    		</tr>
    	</tbody>
    </table>
    <p> </p>
    


    Turns into:
    <table>
    <thead>
    		
    <tr>
    <th>No</th>
    			<th>Field One</th>
    			<th>Field Two</th>
    			<th>Field Three</th>
    		
    </tr>
    </thead>
    	
    <tbody>
    <tr>
    <td>1</td>
    <td>Item One</td>
    <td>Item Two</td>
    <td>Item Three</td>
    </tr>
    <tr>
    <td>3</td>
    <td>Item One</td>
    <td>Item Two</td>
    <td>Item Three</td>
    </tr>
    <tr>
    <td>5</td>
    <td>Item One</td>
    <td>Item Two</td>
    <td>Item Three</td>
    </tr>
    </tbody>
    </table>
    

    Notice that rows 2 and 4 are omitted...?

    Any advice would be greatly appreciated.

    DT