ngx-quill-example
Version:
The demo app for the usage of the [ngx-quill](https://github.com/KillerCodeMonkey/ngx-quill) module. This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.1.0.
25 lines (19 loc) • 586 B
text/typescript
import { Component } from '@angular/core'
import * as fix from 'quill'
import Quill from 'quill'
const parchment = Quill.import('parchment')
const block = parchment.query('block')
block.tagName = 'DIV'
// or class NewBlock extends Block {} NewBlock.tagName = 'DIV'
Quill.register(block /* or NewBlock */, true)
const colors = Quill.import('formats/color')
Quill.register(colors, true)
console.log(colors)
({
selector: 'app-root',
styleUrls: ['./app.component.css'],
templateUrl: './app.component.html'
})
export class AppComponent {
title = 'ngx-quill-example'
}