Best Text Editor For Node Js

broken image


JDoodle is a free Online Compiler, Editor, IDE for Java, C, C, PHP, Perl, Python, Ruby and many more. You can run your programs on the fly online and you can save and share them with others. Quick and Easy way to compile and run programs online. The extension to Vim, considered by many as the best Unix text editor ever, Neovim comes with enough powerful features to be your next Javascript Editor.

IE / EdgeFirefoxChromeSafariiOS SafariOpera
Edge 12+Firefox 18+Chrome 49+Safari 10+Safari 10+Opera 36+

If you like a project 💗💗💗

If you like Editor.js you can support project improvements and development of new features with a donation to our collective.

👉 https://opencollective.com/editorjs

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor] Voice changer without download.

### Backers

Thank you to all our backers! 🙏 [Become a backer]

Contributors

This project exists thanks to all the people who contribute.

We really welcome new contributors. If you want to make some code with us, please take a look at the Good First Tasks. You can write to us on team@codex.so or via special Telegram chat, or any other way.

Documentation

Please visit https://editorjs.io/ to view all documentation articles.

You can join a Gitter-channel or [Telegram-chat](//t.me/codex_editor) and ask a question.

Changelog

See the whole Changelog

How to use Editor.js

Basics

Editor.js is a Block-Styled editor. Blocks are structural units, of which the Entry is composed.For example, Paragraph, Heading, Image, Video, List are Blocks. Each Block is represented by Plugin.We have many ready-to-use Plugins and a simple API for creating new ones.

How to use the Editor after Installation.

  • Create new Blocks by pressing Enter or clicking the Plus Button
  • Press TAB or click on the Plus Button to view the Toolbox
  • Press TAB again to leaf Toolbox and select a Block you need. Then press Enter.
  • Select a text fragment and apply a style or insert a link from the Inline Toolbar
  • Use the «three-dots» button on the right to open Block Settings. From here, you can move and delete a Blockor apply a Tool's settings, if it provided. For example, you can set a Heading level or List style.

Shortcuts

A few shortcuts are preset as available.

ShortcutActionRestrictions
TABShow/leaf a Toolbox.On empty block
SHIFT+TABLeaf back a Toolbox.While Toolbox is opened
ENTERCreate a BlockWhile Toolbox is opened and some Tool is selected
CMD+BBold styleOn selection
CMD+IItalic styleOn selection
CMD+KInsert a linkOn selection

Each Tool can also have its own shortcuts. These are specified in the configuration of the Tool, for example:

Installation Guide

There are few steps to run Editor.js on your site.

Step 1. Load Editor's core

Best Text Editor For Node Js Tutorial

Best Text Editor For Node Js

Get Editor.js itself. It is a [minified script](dist/editor.js) with Editor's core and some default must-have tools.

Choose the most usable method of getting Editor for you.

  • Node package
  • Source from CDN
  • Local file from project
Option A. NPM install

Install the package via NPM or Yarn

Include module in your application

Option B. Use a CDN

You can load EditorJS directly from from jsDelivr CDN.

https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest

For example, place this in your HTML:

Option C. Save source within your project

Copy the [editor.js](dist/editor.js) file to your project and load it.

Step 2. Load the Tools that you want to make available

Each Block is represented by a [Tool](docs/tools.md). Tools are simple external scripts with their own logic. For example, there is a Header Tool into which you type your heading text. If you want to be able to use this, install the Header Tool the same way as the Editor (Node.js, CDN, local file).

Example: use Header from CDN

Check Editor.js's community to see more ready-to-use Tools.

Step 3. Create Editor instance

Create an instance of Editor.js and pass [Configuration Object](types/configs/editor-config.d.ts) with holderId and tools list.

You can create a simple Editor with only default Paragraph Tool by passing a string with element's Id (wrapper for Editor) as a configuration param. Or use the default editorjs id for wrapper.

Or pass a whole settings object.

Saving Data

Best Text Editor For Node Js Download

Call editor.save() and handle returned Promise with saved data.

Example

Take a look at the [example.html](example/example.html) to view more detailed examples.

Credits and references

  • We use HTMLJanitor module in our Sanitizer module.

About team

Best Text Editor For Node Js File

We are CodeX and we build products for developers and makers.

Follow us on Twitter: twitter.com/codex_team

Feel free to contact: team@codex.so





broken image