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

Empty formats property is actually not disabling the formats on Quill 2.0.0-dev3 #2910

Closed
javascriptlove opened this issue Jan 21, 2020 · 4 comments

Comments

@javascriptlove
Copy link

Steps for Reproduction

  1. Visit https://codepen.io/jslove/pen/ZEYVOdq - notice the formats is empty array
  2. Input any text
  3. Select any text and apply bold via toolbar or ctrl+b

Expected behavior:

Bold should not be applied since formats is empty

Actual behavior:

Bold is applied

Platforms:

Chrome Version 79.0.3945.130 (Official Build) (64-bit)
MacOS 10.14

Version:

2.0.0-dev.3

Notes:
It works as expected on 1.3.6, so something broke in between

@DokaRus
Copy link

DokaRus commented Feb 3, 2020

This option has been removed as a result of multiple registers support - #1101.
It seems that the alternative is to create an editor with registry that includes only the formats/blots you need (look at the registry option).
@jhchen is that right?

@javascriptlove
Copy link
Author

But I still see this not being closed slab/parchment#45
so it seems like a feature is removed with no solution yet?

@zouyifeng
Copy link

zouyifeng commented Jul 31, 2023

how can I use registry to limit style in Quill 2.0 editor? like formats in Quill 1.0 work

@benbro
Copy link
Contributor

benbro commented Feb 3, 2024

@benbro benbro closed this as completed Feb 3, 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

4 participants