Ticket #2225 (closed Bug: duplicate)

Opened 6 years ago

Last modified 6 years ago

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

comment:1 Changed 6 years ago by w.olchawa

  • Keywords WorksForMe added
  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone FCKeditor 2.6.1 deleted

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 6 years ago by alfonsoml

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 6 years ago by fredck

  • Keywords WorksForMe removed
  • Status changed from closed to reopened
  • Resolution worksforme deleted

comment:4 Changed 6 years ago by fredck

  • Status changed from reopened to closed
  • Resolution set to duplicate

Confirmed. DUP of #1908.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy