• Stars
    star
    442
  • Rank 98,677 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🖋ī¸ Rich Text Editor for angular using ProseMirror

NgxEditor

ngxEditor

The Rich Text Editor for Angular, Built on ProseMirror

Tests npm version npm npm
licence

A simple rich text editor for angular applications built with ProseMirror. It is a drop in and easy-to-use editor and can be easily extended using prosemirror plugins to build any additional or missing features

Getting Started

demo | edit on stackblitz | documentation | migrating from other editors

Installation

Install via Package managers such as npm or pnpm or yarn

npm install ngx-editor
# or
pnpm install ngx-editor
# or
yarn add ngx-editor

Usage

Note: By default the editor comes with minimal features. Refer the demo and documentation for more details and examples.

Import ngx-editor module

import { NgxEditorModule } from 'ngx-editor';

@NgModule({
  imports: [NgxEditorModule],
})
export class AppModule {}

Component

import { Editor } from 'ngx-editor';

export class EditorComponent implements OnInit, OnDestroy {
  editor: Editor;
  html = '';

  ngOnInit(): void {
    this.editor = new Editor();
  }

  // make sure to destory the editor
  ngOnDestroy(): void {
    this.editor.destroy();
  }
}

Then in HTML

<div class="NgxEditor__Wrapper">
  <ngx-editor-menu [editor]="editor"> </ngx-editor-menu>
  <ngx-editor [editor]="editor" [ngModel]="html" [disabled]="false" [placeholder]="'Type here...'"></ngx-editor>
</div>

Note: Input can be a HTML string or a jsonDoc

Browser Compatibility

Mostly works on all Evergreen-Browsers like

  • Google Chrome
  • Microsoft Edge
  • Mozilla Firefox
  • Safari
  • Opera

Collaborative Editing

See https://sibiraj-s.github.io/ngx-editor/#/collab

Icons

Icons are from https://fonts.google.com/icons

Contributing

All contributions are welcome. See CONTRIBUTING.md to get started.

More Repositories

1

svelte-tiptap

Svelte components for tiptap v2
TypeScript
219
star
2

ngx-tiptap

Angular bindings for tiptap v2
TypeScript
112
star
3

marked-react

⚛ī¸ Render Markdown as React components
TypeScript
64
star
4

action-eslint

✅ GitHub Action that runs ESLint on files changed in a Pull Request
TypeScript
42
star
5

react-layout-masonry

Responsive masonry layout for React
TypeScript
29
star
6

browser-dtector

🌐 A Javascript library to detect browser, version and platform
TypeScript
27
star
7

eslint-plugin-file-progress

Eslint plugin to print file progress
JavaScript
26
star
8

prosemirror-codemirror-6

Prosemirror with Codemirror 6 (demo)
TypeScript
14
star
9

vscode-scss-formatter

A Visual Studio Code Extension to format SCSS files
TypeScript
9
star
10

angularjs-toast

đŸģ A Simple toast notification service for AngularJS pages
JavaScript
7
star
11

angular-paginator

📖 Pagination Component for Angular applications
TypeScript
6
star
12

ngx-notifier

🔔 A Simple Notification Service for Angular applications
TypeScript
4
star
13

merge-json-webpack-plugin

īš› Webpack plugin to merge multiple json files into one īšœ
JavaScript
3
star
14

validator.fn

A simple function to aid form validations
JavaScript
2
star
15

ng-browser-detector

đŸ–Ĩ AngularJs service to detect platform, browser and version
JavaScript
2
star
16

unique-names-generator

Go Package to generate random and unique names
Go
2
star
17

ui-router-breadcrumbs

🍞 Breadcrumbs for AngularJS pages using angular-ui-router
CoffeeScript
2
star
18

capillaries

⚡ī¸ Javascript Events and Hooks
TypeScript
2
star
19

angularjs-file-model

AngularJS directive to support NgModel for HTML input file types
JavaScript
2
star
20

pkg.json-webpack-plugin

đŸ“Ļ Loads package.json into webpack app as an environment variable
JavaScript
1
star
21

copy-asset-in-memory-webpack-plugin

Copy assets in webpack memory
JavaScript
1
star
22

react-boilerplate

⚛ī¸ Minimal React Webpack Boilerplate
JavaScript
1
star
23

gatsby.js-detector

Extension to detect sites built with Gatsby.js
JavaScript
1
star
24

action-archiver

Github action to generate tar/zip archives
TypeScript
1
star
25

hugo-multilingual-boilerplate

Hugo multilingual boilerplate to demonstrate internationalization (i18n) and multilingualization (m17n)
HTML
1
star
26

replace-asset-name-webpack-plugin

Webpack Plugin to replace blocks with asset name matching given regex or string
JavaScript
1
star