ngx-quill

Quill Editor : Check for change in content in Angular?

落花浮王杯 提交于 2020-12-15 05:24:17
问题 I have implemented quill editor in Angular by creating new instance of quill and creating custom toolbar. this.quill = new Quill('#editor-container', { modules: { toolbar: '#toolbar-container' }, theme: 'snow' // or 'bubble' }); I have a "update" button which would call the update API. I need to check if the contents of the Quill editor has changed. I am aware of quill.on('text-change'): this.quill.on('text-change', function(delta, oldDelta, source) { if (source == 'api') { console.log('An

How do I fix this error I get whenever I try to register quill-better-table with my quill editor component in Angular 8?

筅森魡賤 提交于 2020-05-31 07:24:32
问题 I'm new to Angular and trying to set up tables in quill editor. Whenever I try to register the quill-better-table module. I face major issues. Look at my code below. import { Component , ViewChild, OnInit} from '@angular/core'; import QuillBetterTable from 'quill-better-table'; import Quill from 'quill'; import { QuillEditorComponent } from 'ngx-quill'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent

Why does Quill filter it's content?

有些话、适合烂在心里 提交于 2020-01-21 19:24:08
问题 When I use QuillJs to edit an existing HTML document, it removes the comments, indentations etc of the original HTML. Is there anyway to prevent this? 回答1: Quill does not support arbitrary HTML. By default, anything that is not recognized will be converted (the <strong> tag to the <b> tag) when possible, or removed when not. In Quill configuration options, use the configuration named formats . The formats defined in this property will create a whitelist , where anything not in it will be

Why does Quill filter it's content?

烂漫一生 提交于 2020-01-21 19:24:06
问题 When I use QuillJs to edit an existing HTML document, it removes the comments, indentations etc of the original HTML. Is there anyway to prevent this? 回答1: Quill does not support arbitrary HTML. By default, anything that is not recognized will be converted (the <strong> tag to the <b> tag) when possible, or removed when not. In Quill configuration options, use the configuration named formats . The formats defined in this property will create a whitelist , where anything not in it will be