Hi everyone,
First off I want to just say what a great editor FCKeditor is. I do have one little issue though, I run a tutorial website and on this website there are sections of code on pages that are encased in [code][/code] tags. I have a script that converts all html characters to entities inside the code tags and also converts newlines to breaks. My question is, how can I stop FCKeditor from inserting breaks and p's on the press of the enter key and have it be like a normal textarea, inserting newlines. Also, can I stop FCKeditor converting html characters to entities?
Thanks.
First off I want to just say what a great editor FCKeditor is. I do have one little issue though, I run a tutorial website and on this website there are sections of code on pages that are encased in [code][/code] tags. I have a script that converts all html characters to entities inside the code tags and also converts newlines to breaks. My question is, how can I stop FCKeditor from inserting breaks and p's on the press of the enter key and have it be like a normal textarea, inserting newlines. Also, can I stop FCKeditor converting html characters to entities?
Thanks.
RE: Code help
As for converting html to entities it does that in the editor/js/fckeditorcode_(ie|gecko).js file. Which when you add proper line spacing is some 5000 lines. There's a bunch of places where entities are replaced, you pretty much have to search for the entity (<,>,&etc...) in the code and then figure out what's happening at that point in the javascript. It's a painful process, but good luck.
RE: Code help