ngx-editor

The Rich Text Editor for Angular, Built on ProseMirror
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 18.0.0
- 17.5.4
- 17.5.3
- 17.5.2
- 17.5.1
- 17.5.0
- 17.4.0
- 17.3.0
- 17.2.0
- 17.1.0
- 17.0.2
- 17.0.1
- 17.0.0
- 16.0.1
- 16.0.0
- 15.3.0
- 15.2.0
- 15.1.0
- 15.0.1
- 15.0.0
- 14.2.0
- 14.1.0
- 14.0.0
- 13.0.0
- 12.4.1
- 12.4.0
- 12.3.0
- 12.2.3
- 12.2.2
- 12.2.1
- 12.2.0
- 12.1.2
- 12.1.1
- 12.1.0
- 12.0.0
- 11.1.1
- 11.1.0
- 11.0.0
- 10.1.0
- 10.0.2
- 10.0.1
- 10.0.0
- 9.0.2
- 9.0.1
- 9.0.0
- 8.1.1
- 8.1.0
- 8.0.1
- 8.0.0
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.1.0
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.3.0
- 5.2.1
- 5.2.0
- 5.1.1
- 5.1.0
- 5.0.0
- 4.1.1
- 4.1.0
- 4.0.0
- 3.3.0
- 3.2.1
- 3.2.0
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.0.1
- 2.0.0
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.0
- 19.0.0-beta.1
- 16.0.0-beta.0
- 8.0.0-beta.8
- 8.0.0-beta.7
- 8.0.0-beta.6
- 8.0.0-beta.5
- 8.0.0-beta.4
- 8.0.0-beta.3
- 8.0.0-beta.2
- 8.0.0-beta.1
- 8.0.0-beta.0
- 6.1.0-beta.2
- 6.1.0-beta.1
- 6.1.0-beta.0
- 5.0.0-beta.3
- 5.0.0-beta.2
- 5.0.0-beta.1
- 5.0.0-beta.0
- 5.0.0-alpha.20
- 5.0.0-alpha.19
- 5.0.0-alpha.18
- 5.0.0-alpha.17
- 5.0.0-alpha.16
- 5.0.0-alpha.15
- 5.0.0-alpha.14
- 5.0.0-alpha.13
- 5.0.0-alpha.12
- 5.0.0-alpha.11
- 5.0.0-alpha.10
- 5.0.0-alpha.9
- 5.0.0-alpha.8
- 5.0.0-alpha.7
- 5.0.0-alpha.6
- 5.0.0-alpha.5
- 5.0.0-alpha.4
- 5.0.0-alpha.3
- 5.0.0-alpha.2
- 5.0.0-alpha.1
- 5.0.0-alpha
- 4.1.0-beta.0
- 3.3.0-rc.14
- 3.3.0-rc.13
- 3.3.0-rc.12
- 3.3.0-rc.11
- 3.3.0-rc.10
- 3.3.0-rc.9
- 3.3.0-rc.8
- 3.3.0-rc.7
- 3.3.0-rc.6
- 3.3.0-rc.5
- 3.3.0-rc.4
- 3.3.0-rc.3
- 3.3.0-rc.2
- 3.3.0-rc.1
- 3.3.0-rc.0
- 1.0.0-beta.3
- 1.0.0-beta.2
- 1.0.0-beta.1
- 1.0.0-alpha.3
- 1.0.0-alpha.2
- 1.0.0-alpha.1
- 1.0.0-alpha
NgxEditor
The Rich Text Editor for Angular, Built on ProseMirror
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.
Component
import { NgxEditorComponent, NgxEditorMenuComponent, Editor } from 'ngx-editor';
import { FormsModule } from '@angular/forms';
@Component({
selector: 'editor-component',
templateUrl: 'editor.component.html',
styleUrls: ['editor.component.scss'],
standalone: true,
imports: [NgxEditorComponent, NgxEditorMenuComponent, FormsModule],
})
export class NgxEditorComponent implements OnInit, OnDestroy {
html = '';
editor: Editor;
ngOnInit(): void {
this.editor = new 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.