Actually, CKeditor is loading a HTML code from database having the following code :
If loads it as follow :
Is it possible to tell CKeditor stop placing my line containing "[formula_196] <!-- This will output <tr> <td>1</td> <td>2</td> <td>3</td> </tr> -->" at the beggining of the HTML code ?
<table>
<tbody>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
<td>D</td>
</tr>
<tr>
<td>Hours</td>
<td>[numeric_35]</td>
<td>[numeric_34]</td>
<td>[formula_193]</td>
</tr>
[formula_196] <!-- This will output <tr> <td>1</td> <td>2</td> <td>3</td> </tr> --> </tbody>
</table>
If loads it as follow :
[formula_196] <!-- This will output <tr> <td>1</td> <td>2</td> <td>3</td> </tr> -->
<table>
<tbody>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
<td>D</td>
</tr>
<tr>
<td>Hours</td>
<td>[numeric_35]</td>
<td>[numeric_34]</td>
<td>[formula_193]</td>
</tr>
</tbody>
</table>
Is it possible to tell CKeditor stop placing my line containing "[formula_196] <!-- This will output <tr> <td>1</td> <td>2</td> <td>3</td> </tr> -->" at the beggining of the HTML code ?
Re: How to disallow CKeditor to 'FIX' my HTML code ?
Re: How to disallow CKeditor to 'FIX' my HTML code ?
Re: How to disallow CKeditor to 'FIX' my HTML code ?
I'm still hoping for a Fix....
Bumping again
Re: How to disallow CKeditor to 'FIX' my HTML code ?
I see that the spip community do it, but I don't found any documentation on it ...
Re: How to disallow CKeditor to 'FIX' my HTML code ?
Please someone give us at least a hint.
Thank you
Re: How to disallow CKeditor to 'FIX' my HTML code ?
Re: How to disallow CKeditor to 'FIX' my HTML code ?
I doubt there will be any way to handle this, because we're talking about invalid HTML. In fact you have a text node as a direct child of <table>, which is not allowed.
You may try using the protectedSource feature as an option for this, but that will make that text not available in wysiwyg mode.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn