Skip to content

Commit

Permalink
fix: typings registry, remove strict prop for quill view
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerCodeMonkey committed Jun 20, 2024
1 parent 3dc7742 commit 2d51af5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions projects/ngx-quill/config/src/quill-editor.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { InjectionToken } from '@angular/core'

import { defaultModules } from './quill-defaults'
import type { QuillOptions } from 'quill'

export interface CustomOption {
import: string
Expand Down Expand Up @@ -76,10 +77,8 @@ export interface QuillConfig {
modules?: QuillModules
placeholder?: string
readOnly?: boolean
registry?: Record<string, unknown> // added in quill2 result of const registry = new Parchment.Registry();
// scrollingContainer?: HTMLElement | string | null --> removed in quill2
registry?: QuillOptions['registry'] // added in quill2 result of const registry = new Parchment.Registry();
theme?: string
// strict?: boolean --> removed in quill2
// Custom Config to track all changes or only changes by 'user'
trackChanges?: 'user' | 'all'
// provide default empty value
Expand Down
3 changes: 2 additions & 1 deletion projects/ngx-quill/src/lib/quill-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { DOCUMENT, isPlatformServer } from '@angular/common'
import { DomSanitizer } from '@angular/platform-browser'

import type QuillType from 'quill'
import type { QuillOptions } from 'quill'
import type DeltaType from 'quill-delta'

import {
Expand Down Expand Up @@ -95,7 +96,7 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce
readonly sanitize = input<boolean | undefined>(false)
readonly beforeRender = input<() => Promise<void> | undefined>(undefined)
readonly styles = input<any>(null)
readonly registry = input<Record<string, unknown> | null | undefined>(
readonly registry = input<QuillOptions['registry']>(
undefined
)
readonly bounds = input<HTMLElement | string | undefined>(undefined)
Expand Down

0 comments on commit 2d51af5

Please sign in to comment.