Skip to content

Kjablonska/Text-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text editor

Simple text editor developed using vanilla JS and Node.js on backend side.

Description

The aim of this project is to develop a simple text editor which supports bolding, italics and bullet points.
The text is stored as a JSON file in assetes/text.json.
It is possible to save the text.
The app does not support Internet Explorer, as it uses the fetch api. If the user's browser is IE, information on browser support is displayed.

Run&build

  1. Go to the server directory and type in the terminal npm install node express.
    After all is installed execute: node server.js.
  2. Go to the browser and put index.html file there.

Options

Top menu:

  • B - bolds the selected text,
  • I - makes the selected text italic,
  • • - adds bullet points,
  • 🗑️ (Trash Can emoji) - if any text is selected: removes the text, else: removes the whole text,
  • 🧐 (Face with Monocle emoji) - displays manual.

Bottom buttons:

  • Save - saves the current text.
  • Reset - restores the last saved text.

Demo

alt text