📜 ⬆️ ⬇️

Code editors using javascript

Very often, in web projects you need to use a visual code editor ( richtext code editor ), similar to existing IDEs, with line numbers and code highlighting. It is most often used in editing the source code of an article or templates in the admin panel. In this article I will list the existing scripts by analogy with the list of WYSIWYG editors.
Virtually all existing visual editors create an iframe and generate inside the page in accordance with the data of the javascript object, which deals with all the tasks of generating code and processing keys.
Based on iframe:

Let me remind you that iframe does not meet the XHTML specification, but to use
The proposed object tag is not very successful, due to the restriction on
access internal dom elements (correct if i'm wrong).
Based on divs

Ps. Announce that in a short time there will be a blog engine of my production ...

Original

')

Source: https://habr.com/ru/post/26551/


All Articles