Hi,
I'm using FCKeditor in a application which is intended for writing technical articles. It works great, I've used FCKeditor in many applications and know my way around it, so no problems implementing or using it.
I have one issue though, the articles can contain code-samples, which are written in the database after saving and show up correctly when the article is viewed. BUT, when you edit the article, the code-samples dissappear. The code-sample within the FCKeditor isn't visible and after saving it isn't visible in the normal view.
Is there a way to preserve the code-samples?
I've been trying different things, most promising were:
- FCKConfig.ProtectedSource.Add( /<code[\s\S]*?<\/code>/gi);
- replacing < and > with < and >
but did not have the desired effect.
I've searched the forum but can't find any solution, can anybody help?
Thanks in advance.
I'm using FCKeditor in a application which is intended for writing technical articles. It works great, I've used FCKeditor in many applications and know my way around it, so no problems implementing or using it.
I have one issue though, the articles can contain code-samples, which are written in the database after saving and show up correctly when the article is viewed. BUT, when you edit the article, the code-samples dissappear. The code-sample within the FCKeditor isn't visible and after saving it isn't visible in the normal view.
Is there a way to preserve the code-samples?
I've been trying different things, most promising were:
- FCKConfig.ProtectedSource.Add( /<code[\s\S]*?<\/code>/gi);
- replacing < and > with < and >
but did not have the desired effect.
I've searched the forum but can't find any solution, can anybody help?
Thanks in advance.
Re: sample source code disappears after edit