
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
ngx-simple-text-editor
Advanced tools
Ngx Simple Text editor or ST editor is a simple native text editor component for Angular 9+.
Ngx Simple Text editor or ST editor is a simple native text editor component for Angular 9+. The key features of this editor are simplicity, cross-browser compatibility, and extensibility.
Angular version | Ngx simple text editor version | Font awesome version |
---|---|---|
9 - 13 | 0.0.0 - 1.x.x | 5.0.0-6.x.x |
14 | 2.x.x | 5.0.0-6.x.x |
15 | 3.x.x | 5.0.0-6.x.x |
16 | 4.x.x | 5.0.0-6.x.x |
17 - 19 | 5.x.x | 5.0.0-6.x.x |
npm install ngx-simple-text-editor --save
then add NgxSimpleTextEditorModule
into module imports
import {NgxSimpleTextEditorModule} from 'ngx-simple-text-editor';
@NgModule({
// ...
imports: [
// ...
NgxSimpleTextEditorModule,
// ...
],
// ...
})
If you want to use default button icons, you must install Font awesome.
npm install @fortawesome/fontawesome-free
and declare in styles in angular.json
...
"styles": [
"src/styles.scss",
"node_modules/@fortawesome/fontawesome-free/css/all.css"
]
...
You can use Ngx simple text editor as classic template-driven form input or as reactive form input.
<st-editor [(ngModel)]="content" [config]="config"></st-editor>
The editor has got only one @Input with config object, which is optional. The config object is defined by placeholder and buttons, both are optional and can be omitted.
import { Component } from '@angular/core';
import {EditorConfig, ST_BUTTONS} from 'ngx-simple-text-editor';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
content = '';
config: EditorConfig = {
placeholder: 'Type something...',
buttons: ST_BUTTONS,
};
}
Online documentation and demos
MIT
FAQs
Ngx Simple Text editor or ST editor is a simple native text editor component for Angular 9+.
The npm package ngx-simple-text-editor receives a total of 754 weekly downloads. As such, ngx-simple-text-editor popularity was classified as not popular.
We found that ngx-simple-text-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.