I have been using ckeditor 4.4 along with the code snippet plugin. Initially, when I create a document with a rich code snippet and save it, everything works perfectly fine. The source code for what is generated looks like this:
<pre><code><p>this is a paragraph</p&</code></pre>
This is exactly how the plugin is expected to function.
However, when I subsequently edit the document by reopening it in ckeditor as shown below:
<textarea name='materials' class='ckeditor'><?php echo $lesson['materials'] ?></textarea>
The editor seems to distort the code snippet, altering the source code to:
<pre>
</pre>
<p><code>this is a paragraph</code></p>
I am wondering if I am opening the text incorrectly in ckeditor or if this is a known issue that I have yet to find a solution for.
Any insights on this matter would be greatly appreciated. Thank you!