Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I hope to provide features for customizing themes #4150

Open
kagol opened this issue Apr 30, 2024 · 0 comments
Open

I hope to provide features for customizing themes #4150

kagol opened this issue Apr 30, 2024 · 0 comments

Comments

@kagol
Copy link

kagol commented Apr 30, 2024

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 kagol changed the title How to customize a new theme besides snow and bubble? I hope to provide features for customizing themes Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant