Skip to content

Mrcel97/onlineEditors

Repository files navigation

OnlineEditors

This project aim is to test the different text/code editors options aviable to introduce in our website.

Table of contents

  1. Text editors
  2. Angular project information

Text editors

This section will be updated every time a new text editor will be added to the compilation. For the moment, the project will contain:

  1. SlateJS
  2. Codemirror
  3. Ace IDE
  4. StackBlitz
  5. Froala
  6. Monaco
Docs:
URL:
Component name:
Files:
Features:
Docs:
URL:
Component name:
Files:
Features:
Docs:
URL:
Component name:
Files:
Features:
URL: /stackblitz

Component name: stack-blitz

Files: 
stack-blitz.component.ts
stack-blitz.component.scss
stack-blitz.component.spec.ts
stack-blitz.component.html

Features: 
  a. Intellisense, Project Search (Cmd/Ctrl+P), Go to Definition, and other key Visual 
  Studio Code features.

  b. Hot reloading as you type.

  c. Import NPM packages into your project.

  d. Keep editing while offline thanks to our revolutionary in-browser dev server.

  e. Hosted app URL where you can see (or share) your live application at any time.
URL: /froala

Component name: froala

Files: 
froala.component.ts
froala.component.scss
froala.component.spec.ts
froala.component.html

Features: 
  a. Developer friendly.

  b. Easy to extend.

  c. Out of the box plugins.

  d. Inline WYSIWYG HTML Editor.

  e. Multi-Framework.
URL: /monaco

Component name: froala

Files: 
monaco.component.ts
monaco.component.scss
monaco.component.spec.ts
monaco.component.html

Features: 
  a. Rich IntelliSense, Validation.

  b. Basic Syntax Colorization using Monarch.

  c. Diff Editor, side by side live comparison.

  d. Supports IE 11, Edge, Chrome, Firefox, Safari and Opera.

  e. Monaco Editor is the code editor that powers VS Code.

  f. Not supported in mobile browsers or mobile web frameworks. 



Angular Project information

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.