quill icon indicating copy to clipboard operation
quill copied to clipboard

I hope to provide features for customizing themes

Open kagol opened this issue 1 year ago • 0 comments

I found a document that introduces the use of built-in snow and bubble themes, but it doesn't explain how to customize a new theme or extend based on the built-in themes.

https://quilljs.com/docs/customization/themes#customization

I hope to improve the features and documentation related to theme customization.

Define a them class:

class MyCustomTheme extends SnowTheme {
  constructor(quill, options) {
    // code
  }
  // other code
}

Usage:

import MyCustomTheme from './my-custom-theme.ts'

Quill.register('themes/my-custom-theme', MyCustomTheme)

Thanks!

kagol avatar Apr 30 '24 11:04 kagol