- 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>
- Fill in options with any options listed here:
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,
...