
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ngx-mat-markdown-text-editor
Advanced tools
Angular markdown editor based on Angular material textarea. The goal of this library is to provide a markdown text editor which sweets the Angular Material Design.
projects/ngx-mat-markdown-text-editor directory of this repository.projects/demo directory of this repository.projects/demo directory of this repository.npm i ngx-mat-markdown-text-editor
import { NgxMatMarkdownTextEditorModule } from 'ngx-mat-markdown-text-editor'
selector: ngx-mat-markdown-text-editor
| Input | Type | Required | Description |
|---|---|---|---|
| rows | number | Optional | |
| appearance | MatFormFieldAppearance | Optional | The form-field appearance style. |
| matAutosize | boolean | Optional, default: false | Whether autosizing is enabled or not |
| readonly | boolean | Optional, default: false | Whether the element is readonly. |
| placeholder | string | Optional | The placeholder for this control. |
| matAutosizeMaxRows | number | Optional | |
| livePreviewEnabled | boolean | Optional, default: false | Whether the live preview is enabled or not |
| hideLivePreviewButton | boolean | Optional, default: false | Whether preview toggle button is displayed or not |
| Output | Description |
|---|---|
| reset | Emits when when the user resets a form. |
| change | Emits when the contents of the editor or selection have changed. |
| select | Emits when the current selection changes. |
| focus | Emits when the editor receives focus. |
| touched | Emits when the user touches the editor. |
NgxMatMarkdownTextEditorModule in your app module.
import { NgxMatMarkdownTextEditorModule } from 'ngx-mat-markdown-text-editor'
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatInputModule } from '@angular/material';
import { MatButtonModule } from '@angular/material/button';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {NgxMatMarkdownTextEditorModule} from 'ngx-mat-markdown-text-editor.module';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
NgxMatMarkdownTextEditorModule,
MatInputModule,
MatButtonModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
(NgxMatMarkdownTextEditor) in your component.import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
@Component({
selector: 'app-root',
template: `
<div class="container">
<h3>NgxMatMarkdownTextEditor</h3>
<form [formGroup]="formGroup" (ngSubmit)="submit()">
<ngx-mat-markdown-text-editor formControlName="text" appearance="outline" matAutosize [livePreviewEnabled]="true"
rows="5" (change)="change($event)"></ngx-mat-markdown-text-editor>
<button mat-button type="submit" color="accent">Submit</button>
</form>
</div>
`,
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
constructor() {}
formGroup: FormGroup;
ngOnInit() {
this.formGroup = new FormGroup({ text: new FormControl('') });
}
submit(): void {
console.log(this.formGroup.value)
}
}
Run ng build ngx-mat-markdown-text-editor to build the library. The build artifacts will be stored in the dist/ngx-mat-markdown-text-editor directory. Use the --prod flag for a production build.
Run ng test ngx-mat-markdown-text-editor to execute the unit tests via Karma.
This project is based on ngx-markdown and inspired from ngx-markdown-editor.
FAQs
Angular markdown text editor based on Material Angular
The npm package ngx-mat-markdown-text-editor receives a total of 2 weekly downloads. As such, ngx-mat-markdown-text-editor popularity was classified as not popular.
We found that ngx-mat-markdown-text-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.