🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

slate-ng

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slate-ng

Tools for building completely customizable richtext editors with Angular.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Slate Ng

中文文档 | English Doc

Demo

https://chongqiangchen.github.io/slate-ng/

Quick Start:

  • install: npm install slate-ng slate slate-history @angular/cdk
  • import module: SlateNgModule
  • use ns-editor, ex:
// html
<div
  ns-editor
  [editor]="editor"
  [value]="value"
  placeholder="enter some"
></div>

// ts
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less'],
  providers: [NsEditorService, NsDepsService, RegistryNsElement]
})
export class AppComponent {
  editor = withAngular(createEditor());
  value = [
    {
      type: 'paragraph',
      children: [{text: ''}]
    }
  ]
}

If you want to know more usage, you can refer to slate-ng demo code

LICENSE

MIT License

Keywords

slate

FAQs

Package last updated on 24 Jun 2021

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