Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ckeditor removes table tags

Tags:

ckeditor

I've upgraded the old ckeditor with the new ckeditor, only I'm struggling with the behaviour of the new one.

It seems that the new one removes my complete table.

For example from this input:

<table>
    <tr>
        <td>
            This is a test
        </td>
    </tr>
</table> 

he will make this:

<p>This is a test</p>

I need the table, so how can I prevent ckeditor to replace my <table> tags with a <p> tag?

like image 450
user1035498 Avatar asked Sep 27 '13 08:09

user1035498


1 Answers

config.toolbar = [
    { name: 'insert', items: [ 'Table' ] }
];                                       

please use the above code as in new versions of ck editor you have to mention tables in toolbar.

like image 187
jibran Avatar answered Nov 09 '22 03:11

jibran