@covalent/highlight
TypeScript icon, indicating that this package has built-in type declarations

8.12.0 • Public • Published

TdTextEditorComponent: td-text-editor

<td-text-editor> element generates an easymde markdown editor.

API Summary

Inputs

Properties

  • isPreviewActive?: function()
    • is the Preview Active. Returns boolean
  • isSideBySideActive?: function()
    • is the Side By Side Active. Returns boolean
  • isFullscreenActive?: function()
    • is Full Screen Active. Returns boolean
  • clearAutosavedValue?: function()
    • clears Auto Saved Value. Returns void
  • toTextArea?: function()
    • reverts to the Initial textarea. Returns void
  • easyMDE?: function()
    • getter function for the underlying easyMDE Object. Returns EasyMDE

Installation

This component can be installed as npm package.

npm install @covalent/text-editor

Setup

Import the CovalentTextEditorModule in your NgModule:

import { CovalentTextEditorModule } from '@covalent/text-editor';
@NgModule({
  imports: [
    CovalentTextEditorModule,
    ...
  ],
  ...
})
export class MyModule {}

Usage

<td-text-editor [value]="Some Text" [options]="options"></td-text-editor>
class MyComponent {
  options: any = {
    lineWrapping: true,
    toolbar: false,
    ...
  };
}

/@covalent/highlight/

    Package Sidebar

    Install

    npm i @covalent/highlight

    Weekly Downloads

    833

    Version

    8.12.0

    License

    MIT

    Unpacked Size

    106 kB

    Total Files

    15

    Last publish

    Collaborators

    • ct186029
    • emoralesb05
    • juliemarie
    • odubya320