@tinkoff/angular-contenteditable-accessor
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.0 • Public • Published

    Tinkoff ControlValueAccessor for contenteditable elements

    Build Coverage Status npm version

    This accessor allows you to use Angular forms with contenteditable elements with ease. It has zero dependencies, other than Angular itself as peer and works with Angular 4+ in all modern browsers, including Internet Explorer 11.

    Install

    $ npm install @tinkoff/angular-contenteditable-accessor
    

    Import

    Simply import ContenteditableValueAccessorModule along with either Angular's form modules into your component's module

    How to use

    Use with template and reactive forms like that:

    <div [(ngModel)]="model" contenteditable></div>
    
    <div [formControl]="control" contenteditable></div>
    
    <form [formGroup]="group">
      <div formControlName="control" contenteditable></div>
    </form>
    

    Demo

    https://stackblitz.com/edit/angular2-contenteditable-value-accessor

    Maintain

    See MAINTAIN.md

    Install

    npm i @tinkoff/angular-contenteditable-accessor

    DownloadsWeekly Downloads

    2,200

    Version

    1.2.0

    License

    Apache-2.0

    Unpacked Size

    151 kB

    Total Files

    24

    Last publish

    Collaborators

    • makar_l
    • tinkoffbank
    • tom910
    • dmitry-korolev
    • rouland
    • ishivan
    • ytsareva
    • shoom3301
    • waterplea
    • meskill
    • marsibarsi
    • zig-green
    • defenderbass
    • super_oleg
    • dersizes
    • alexkvak