I want to try to write a simple text editor in javascript html and css, in which I would like to create new files and folders .
Are there any js-libraries to solve these problems?
- You should take into account that, most likely, work with files and folders in the future (if further development is planned, of course), there will be a server, and not JavaScript, because JavaScript can work only on the client machine. If it is meant that it is about browser JS. - smellyshovel
- @smellyshovel No, no further development is planned) so for practice! And of course, I use browser js - Denisoed
- In this case, it makes sense to read this here.stackoverflow.com/a/429771/200881 , because as far as I know, working with files is not provided at all (and why? You need to save something - write in cookies or in Storage) . - smellyshovel
- Some kind of absurd! I want to create a simple text editor, there is something ready for this. There is! Thousand and one free editor. If you use the ready one, then what kind of wash it? - user220409
- @OlmerDale Gain experience! - Denisoed
|
1 answer
To write a simple editor, you will need to examine node.js and use Electron .
The electron will allow you to create something like Atom.io, but without basic knowledge in node.js you will not go far.
Ilya Kantor took screencasts on node.js , although there is an ancient version, api has not changed much, the material gives an excellent start for understanding how nodejs works and how it interacts with the file system.
- The answer is what you need! Thank you) - Denisoed
|