New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@kolkov/angular-editor

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kolkov/angular-editor

A simple native wysiwyg editor for Angular 6+

0.1.0
Version published
Weekly downloads
62K
-4.94%
Maintainers
1
Weekly downloads
 
Created

AngularEditor

A simple native wysiwyg editor for Angular 6+

Getting Started

Installation

Install via npm package manager

npm install @kolkov/angular-editor --save

Usage

Import angular-editor module

import { AngularEditorModule } from 'angular-editor';

@NgModule({
  imports: [ AngularEditorModule ]
})

Import font-awesome into your application

Then in HTML

<angular-editor [placeholder]="'Enter text here...'" [(ngModel)]="htmlContent"></angular-editor>

or

<angular-editor formControlName="htmlContent" [config]="editorConfig"></angular-editor>

where

import { AngularEditorConfig } from 'angular-editor';

...

editorConfig: AngularEditorConfig = {
    editable: true,
    spellcheck: true,
    height: '25rem',
    minHeight: '5rem',
    placeholder: 'Enter text here...',
    translate: 'no'
  };

For ngModel to work, you must import FormsModule from @angular/forms, or for formControlName, you must import ReactiveFormsModule from @angular/forms

FAQs

Package last updated on 02 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts