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

User is not allowed to input minus folowed by the spacebar. #1538

Closed
fiurrr opened this issue Jun 22, 2017 · 2 comments
Closed

User is not allowed to input minus folowed by the spacebar. #1538

fiurrr opened this issue Jun 22, 2017 · 2 comments

Comments

@fiurrr
Copy link

fiurrr commented Jun 22, 2017

After user type minus followed by a spacebar, content is automatically interpeted as a bullet list. After removing bullet list formating, '-' sign dissapear. I was looking into doc and coundn't find a way to remove/disable/override that behavior.

Is there any way of doing this, handling user input, or overriding bullet list behaviour?
The only way to do this is type 'something - 30%' and then remove something;

Steps for Reproduction

  1. try to type in into editor: '- 50%'

Platforms:
Chrome 58 on Windows 7

Version:
Quill 1.2.6

Would appreciate any input, thanks!

@jhchen
Copy link
Member

jhchen commented Jun 26, 2017

To answer the question about overriding, you can customize the keyboard shortcuts or supply a custom module. However I also made a change so that you can undo the automatic conversion. Just type "- 50%" and then control+z to undo.

@jhchen jhchen closed this as completed Jun 26, 2017
@jhchen
Copy link
Member

jhchen commented Jun 26, 2017

Not sure why Github did not link the commit: 7c7235e

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

2 participants