diff --git a/src/header.ts b/src/header.ts index 0312c72..745783e 100644 --- a/src/header.ts +++ b/src/header.ts @@ -1,13 +1,13 @@ -import type TypeHeader from 'quill/formats/header' -import Quill from 'quill' -import { randomID } from './utils' +import type TypeHeader from 'quill/formats/header'; +import Quill from 'quill'; +import { randomID } from './utils'; -const Header = Quill.import('formats/header') as typeof TypeHeader +const Header = Quill.import('formats/header') as typeof TypeHeader; export class HeaderWithID extends Header { static create(value: any) { - const node = super.create(value) - node.id = randomID() - return node + const node = super.create(value); + node.id = randomID(); + return node; } }