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

タブ操作時にQuill内にフォーカスが入るとインデントが適用されてしまう問題 #29

Open
h-yabi2 opened this issue Oct 11, 2024 · 0 comments

Comments

@h-yabi2
Copy link
Owner

h-yabi2 commented Oct 11, 2024

  • 以下のコードを適用することで解決できた↓
  • しかし、これだけだとリストのインデントが効かなくなってしまう

解決コード

  useEffect(() => {
    const removeTabBinding = () => {
      if (quillRef.current === null) {
        return
      }
      const keyboard = quillRef.current.getEditor().getModule('keyboard')
      delete keyboard.bindings[9]
    }
    removeTabBinding()
  }, [quillRef])

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant