Opened 16 years ago

Closed 16 years ago

#2225 closed Bug (duplicate)

Problem with angle brackets

Reported by: JimNox Owned by:
Priority: Normal Milestone:
Component: Server : ASP.Net Version: FCKeditor 2.6
Keywords: Cc:

Description

Firstly I use FCKeditor with ASP and it works perfectly. Now I'm attempting to use it with ASP.NET and then I find the problem below.
I want to input some Code in my articles such as

#include <iostream>
int main(){
    cout << "Opps..." << endl;
    return 0;
}

It works well in the _sample with ASP. The <iostream> will be translated into &lt;iostream&gt;. But when I use it in ASP.NET it becomes

<pre>
#include <iostream><br />
int main(){<br />
    cout &lt;&lt; &quot;Opps...&quot; &lt;&lt; endl;<br />
    return 0;<br />
}<br />
<br />
</iostream>
</pre>

The <iostream> is translated as a tag and it is automatically completed. Of course it's not what I want it to be.
In fact I'm using exactly the default "fckconfig.js" and the simple

<fck:FCKeditor ID="fckEditor" BasePath="Editor/"
    runat="server" Height="400px" EditorAreaCSS="editorArea" />

to put it onto my ASP.NET page. Now I'm wondering whether the ASP.NET config (like web.config) will affect the FCKeditor. I've written 'validateRequest="false"' in my web.config for all pages.
Thank you.
Jim

Change History (4)

comment:1 Changed 16 years ago by Wojciech Olchawa

Keywords: WorksForMe added
Milestone: FCKeditor 2.6.1
Resolution: worksforme
Status: newclosed

I didn't encounter any problems with the code that you have provided. In my case (both in IE and FF) the output code was:

<p>#include &lt;iostream&gt;<br />
int main(){<br />
&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;Opps...&quot; &lt;&lt; endl;<br />
&nbsp;&nbsp;&nbsp; return 0;<br />
}</p>

which is the expected output. Be sure to insert the code in Normal View not in Source View and than everything should work as expected.

comment:2 Changed 16 years ago by Alfonso Martínez de Lizarrondo

The bug report is about asp.net, so this is indeed a dup of #1908, that is fixed for the next release.

comment:3 Changed 16 years ago by Frederico Caldeira Knabben

Keywords: WorksForMe removed
Resolution: worksforme
Status: closedreopened

comment:4 Changed 16 years ago by Frederico Caldeira Knabben

Resolution: duplicate
Status: reopenedclosed

Confirmed. DUP of #1908.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy