Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Dec 11, 2023
1 parent e5af44c commit 646da8e
Showing 1 changed file with 6 additions and 31 deletions.
37 changes: 6 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
# Tinkoff ControlValueAccessor for contenteditable elements
## @tinkoff/angular-contenteditable-accessor deprecated

[![⚙️ CI](https://github.com/taiga-family/angular-contenteditable-accessor/actions/workflows/ci.yml/badge.svg)](https://github.com/taiga-family/angular-contenteditable-accessor/actions/workflows/ci.yml)
[![npm version](https://img.shields.io/npm/v/@tinkoff/angular-contenteditable-accessor.svg)](https://www.npmjs.com/package/@tinkoff/angular-contenteditable-accessor)

> This accessor allows you to use Angular forms with contenteditable elements with ease.
## Install
### Migration guide

```
$ npm install @tinkoff/angular-contenteditable-accessor
$ npm install @tinkoff/tui-editor
```

## 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](MAINTAIN.md)
```ts
import {ContenteditableValueAccessorModule} from '@tinkoff/tui-editor/angular-contenteditable-accessor';
```

0 comments on commit 646da8e

Please sign in to comment.