All Projects → sibiraj-s → Ngx Editor

sibiraj-s / Ngx Editor

Licence: mit
🖋️ Rich Text Editor for angular using ProseMirror

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ngx Editor

Pell
📝 the simplest and smallest WYSIWYG text editor for web, with no dependencies
Stars: ✭ 11,653 (+4542.63%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Flutter Quill
Rich text editor for Flutter
Stars: ✭ 177 (-29.48%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Vue Froala Wysiwyg
Vue component for Froala WYSIWYG HTML Rich Text Editor.
Stars: ✭ 553 (+120.32%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Wysiwyg Editor
The next generation Javascript WYSIWYG HTML Editor.
Stars: ✭ 4,756 (+1794.82%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Canner Slate Editor
📝Rich Text / WYSIWYG Editor built for Modularity and Extensibility.
Stars: ✭ 1,071 (+326.69%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Wysiwyg.js
wysiwyg contenteditable editor (minified+compression: 6kb)
Stars: ✭ 520 (+107.17%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Proton
Purely native and extensible rich text editor for iOS and macOS Catalyst apps
Stars: ✭ 685 (+172.91%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Angular Editor
A simple native WYSIWYG editor component for Angular 6 -10+
Stars: ✭ 428 (+70.52%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Megadraft
Megadraft is a Rich Text editor built on top of Facebook's Draft.JS featuring a nice default base of components and extensibility
Stars: ✭ 982 (+291.24%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Jodit
Jodit - Best WYSIWYG Editor for You
Stars: ✭ 947 (+277.29%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Ckeditor5
Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
Stars: ✭ 5,406 (+2053.78%)
Mutual labels:  rich-text-editor, wysiwyg-editor
React Text Selection Popover
Selection based Text UI made easy
Stars: ✭ 245 (-2.39%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Element Tiptap
🌸A modern WYSIWYG rich-text editor using tiptap and Element UI for Vue.js
Stars: ✭ 481 (+91.63%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Simditor
An Easy and Fast WYSIWYG Editor
Stars: ✭ 4,926 (+1862.55%)
Mutual labels:  rich-text-editor, wysiwyg-editor
React Quill
A Quill component for React.
Stars: ✭ 4,739 (+1788.05%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Suneditor
Pure javascript based WYSIWYG html editor, with no dependencies.
Stars: ✭ 557 (+121.91%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Re Editor
一个开箱即用的React富文本编辑器 🚀re-editor
Stars: ✭ 367 (+46.22%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Slate Plugins
🔌 Next-gen slate plugins
Stars: ✭ 399 (+58.96%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Angular Froala Wysiwyg
Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
Stars: ✭ 696 (+177.29%)
Mutual labels:  rich-text-editor, wysiwyg-editor
Awesome Wysiwyg
A curated list of awesome WYSIWYG editors.
Stars: ✭ 1,801 (+617.53%)
Mutual labels:  rich-text-editor, wysiwyg-editor

NgxEditor

ngxEditor

Rich Text Editor for angular using ProseMirror

Tests npm version npm npm licence

Getting Started

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

Installation

Install via Package managers such as npm or yarn

npm install ngx-editor --save
# 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"
    [editable]="true"
    [placeholder]="Type here..."
  ></ngx-editor>
</div>

Note: Input can be a HTML string or a jsonDoc

Working with HTML

If the Input to the component is HTML, output will be HTML. To manually convert json output from the editor to html

import { toHTML } from 'ngx-editor';

const html = toHTML(jsonDoc, schema); // schema is optional

Or to convert HTML to json. Optional, as Editor will accept HTML input

import { toDoc } from 'ngx-editor';

const jsonDoc = toDoc(html);

Commands

this.editor.commands
  .textColor('red')
  .insertText('Hello world!')
  .focus()
  .scrollIntoView()
  .exec();

Run exec to apply the changes to the editor.

Optional Configuration

You can specify locals to be used in the editor

NgxEditorModule.forRoot({
  locals: {
    bold: 'Bold',
    italic: 'Italic',
    code: 'Code',
    underline: 'Underline',
    // ...
  },
});

Browser Compatibility

Mostly works on all Evergreen-Browsers like

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

Angular Compatibility

Angular 9+.

Collaborative Editing

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

Icons

Icons are from https://material.io/resources/icons/

Contributing

All contributions are welcome.

See CONTRIBUTING.md to get started.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].