Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ngx-simplemde
Advanced tools
Readme
Angular for simplemde, better use ng-zorro-antd components.
ngx-simplemde
from npm
yarn add ngx-simplemde --save
SimplemdeModule
in to your root AppModule
.import { SimplemdeModule } from 'ngx-simplemde';
@NgModule({
imports: [
BrowserModule,
SimplemdeModule.forRoot({
// Global options
options: {
autosave: { enabled: true, uniqueId: 'MyUniqueID' },
},
})
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule { }
simplemde-antd.min.js
and styles to angular.json
."styles": [
"src/styles.less"
],
"scripts": [
"node_modules/simplemde-antd/dist/simplemde.min.js"
]
// src/style.less
@import '~ngx-simplemde/index.less';
// Change existing parameters here:
@simplemde-icon-url: '//at.alicdn.com/t/font_700857_mnodkd1cp9l766r';
@simplemde-statusbar-lines: 'Lins:';
@simplemde-statusbar-words: 'words:';
@simplemde-statusbar-characters: '字符:';
@simplemde-statusbar-counts: '字数:';
NOTICE: If you need to deploy ICON offline, download and change
@simplemde-icon-url
the path.
import { Component, ViewChild, OnInit } from '@angular/core';
import { SimplemdeComponent, SimplemdeOptions } from 'ngx-simplemde';
@Component({
selector: 'app-root',
template: `
<simplemde [(ngModel)]="demo" [disabled]="false"></simplemde>
<simplemde #simplemde [(ngModel)]="customize" [options]="options"></simplemde>
`,
})
export class AppComponent implements OnInit {
@ViewChild('simplemde', { static: true }) private readonly simplemde: SimplemdeComponent;
options: SimplemdeOptions = {
toolbar: ['bold', 'italic', 'heading', '|', 'quote']
};
ngOnInit(): void {
this.simplemde.setOptions('lineNumbers', true);
}
}
Please follow this guidelines when reporting bugs and feature requests:
Thanks for understanding!
The MIT License (see the LICENSE file for the full text)
FAQs
Angular for simplemde
The npm package ngx-simplemde receives a total of 485 weekly downloads. As such, ngx-simplemde popularity was classified as not popular.
We found that ngx-simplemde 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.