I have a problem saving ckeditor
HTML
content to database. This is what should be saved
<h2 dir="rtl" style="text-align:center"><strong></strong></h2>
<table border="1" cellpadding="10" cellspacing="0" style="width:100%">
<tbody>
<tr>
<td colspan="2" dir="rtl" style="background-color:#99cc66">
<strong><span style="font-size:20px">:</span></strong>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
that was the source html
in the ckeditor
textarea
but after sending the post
and var_dump($_POSt)
it appears like:
<h2 dir="rtl" [removed]="width:100%">
<tbody>
<tr>
<td colspan="2" dir="rtl" [removed]="font-size:20px">:</span></strong></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
<p dir="rtl"> </p>
and this is ckeditor
script I added in the footer
:
<script src="https://cdn.ckeditor.com/4.11.2/full/ckeditor.js"></script>
<script>
var editor = CKEDITOR.replace('editor1', {
height: 400,
uiColor: '#E4E4E4',
toolbarCanCollapse: true,
language: 'ar',
extraAllowedContent: 'span;ul;li;table;td;style;*[id];*(*);*{*}',
allowedContent: true,
});
</script>
any Help!?