-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Cédric Belin edited this page Sep 23, 2018
·
13 revisions
Before installing SAB Rich Text Editor, you need to make sure you have Node.js and npm, the Node.js package manager, up and running.
SAB Rich Text Editor requires Node.js >= 10.11.0.
You can verify if you're already good to go with the following commands:
node --version
# v10.11.0
npm --version
# 6.4.1
If you plan to play with the package sources, you will also need Gulp.
From a command prompt, run:
npm install @sab-international/rich-text-editor
Now in your JavaScript or TypeScript code, you can use:
import {RichTextEditor} from '@sab-international/rich-text-editor';
This library is packaged as
ECMAScript
modules.
To consume it, you must use a dedicated tool chain, like a build system coupled with a bundler or a transpiler.
See the usage information.
This library is also available as a ready-made bundle.
To install it, add this code snippet to the <head>
of your HTML document:
<!-- jsDelivr -->
<script src="https://cdn.jsdelivr.net/npm/@sab-international/rich-text-editor/build/editor.js"></script>
<!-- UNPKG -->
<script src="https://unpkg.com/@sab-international/rich-text-editor/build/editor.js"></script>