Sorry to barge in.
You could try running this -
That should remove all line-breaks from the variable text.Code:text = text.replace(/(\r\n|\n|\r)/gm,"");
But that'd only work if you can run javascript inside your editor...
Are you trying to program a code editor?



Reply With Quote



Bookmarks