Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 707 Bytes

SETUP.md

File metadata and controls

31 lines (28 loc) · 707 Bytes

Setup

  • Install Module
npm install @covalent/text-editor
  • Add the following tag to html file
<td-text-editor [value]="Some Text" [options]="options"></td-text-editor>
class MyComponent {
  options: any = {
    lineWrapping: true,
    toolbar: false,
    ...
  };
}
  • Import the covalent-editor component into app.module.ts
import { CovalentTextEditorModule } from '@covalent/text-editor';
...

imports: [
    CovalentTextEditorModule,

...