
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@dimpu/ngx-quill
Advanced tools
Angular (>=2) component for rich text editor Quill
npm install @dimpu/ngx-quill --save
Include NgxQuillModule in your main module:
import { NgxQuillModule } from '@dimpu/ngx-quill';
@NgModule({
// ...
imports: [
NgxQuillModule
],
// ...
})
export class AppModule {}
Then use it in your component:
<!-- use with ngModel -->
<ngx-quill [(ngModel)]="editorContent"
[options]="editorOptions"
(blur)="onEditorBlured($event)"
(focus)="onEditorFocused($event)"
(ready)="onEditorCreated($event)"
(change)="onContentChanged($event)"></ngx-quill>
<!-- or use with formControl -->
<ngx-quill [formControl]="editorContent"
[options]="editorOptions"
(blur)="onEditorBlured($event)"
(focus)="onEditorFocused($event)"
(ready)="onEditorCreated($event)"
(change)="onContentChanged($event)"></ngx-quill>
import { Component } from '@angular/core';
@Component({
selector: 'sample',
template: require('./sample.html')
})
export class Sample {
public editor;
public editorContent = `<h3>I am Example content</h3>`;
public editorOptions = {
placeholder: "insert content..."
};
constructor() {}
onEditorBlured(quill) {
console.log('editor blur!', quill);
}
onEditorFocused(quill) {
console.log('editor focus!', quill);
}
onEditorCreated(quill) {
this.editor = quill;
console.log('quill is ready! this is current quill instance object', quill);
}
onContentChanged({ quill, html, text }) {
console.log('quill content is changed!', quill, html, text);
}
ngOnInit() {
setTimeout(() => {
this.editorContent = '<h1>content changed!</h1>';
console.log('you can use the quill instance object to do something', this.editor);
// this.editor.disable();
}, 2800)
}
onReady(quill) {
const customButton = document.querySelector('#custom-button');
customButton.addEventListener('click', function() {
const range = quill.getSelection();
if (range) {
quill.insertText(range.index, 'Ω');
}
});
}
}
FAQs
Angular (>=2) component for rich text editor Quill
We found that @dimpu/ngx-quill 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.