Wrote the wikipedia engine ( http://centerix.ru/wiki/ ), for complete happiness there is not enough normal editor. Now, when the button is pressed, the text is sent to the server, processed by the ancient junk in c ++ and given to the user in the form of html code.

Tell the engine on js, which can immediately show the result, well, and a lot of everything else, which is now thought of in the field of the web. For example, such an engine, as on http://ru.stackoverflow.com . But, specifically, I don’t like this one because of ignoring the transition to a new line.

For the company I would like to clarify, will the js engine be used to display all the saved data or only when editing?

  • You "wrote the Wikipedia engine" (which part of it?), Now you need an editor for "complete happiness" ... what editor? And why on JS? - AseN pm
  • All, starting from the server. Design is not mine. The form for editing is opened by the "Edit" button. Now it's just a form with text, but I would like it to immediately show when you enter text in what form it will appear on the page. - mikelsv pm
  • And why do you need it on JS. You can, in general, believe that the "engine" was poorly written on the pros, but, damn, server side JS is a separate song in general .. - AseN
  • Oh, that was meant on the client side. I can't even compare the idea of ​​writing on the server side to JS. I would write on the client on something else, but there is nothing else. Or maybe already invented? - mikelsv

3 answers 3

I so assume you need a JS editor, I suggest using http://ace.c9.io/

    If I understand correctly, you need a WYSIWYG editor.

    There are a lot of them, for example, like this: http://ckeditor.com/

      here is a whole list of the best WYSIWYG editors