slab / quill

Quill is a modern WYSIWYG editor built for compatibility and extensibility
https://quilljs.com
BSD 3-Clause "New" or "Revised" License
42.3k stars 3.31k forks source link

Link editing tooltip position is not proper #4256

Closed reuse-ay closed 2 weeks ago

reuse-ay commented 2 weeks ago

Link editing tooltip position is not proper. I also had trouble using the dialog.

Steps for Reproduction

  1. Visit quilljs.com
  2. Select "Quill" in paragraph
  3. Click link editing button スクリーンショット 2024-06-17 103902 This is use in dialog in my work. スクリーンショット 2024-06-17 105114

Expected behavior: Tooltip's position should be adjusted to the editor element.(probably class="ql-container")

Actual behavior:

Tooltip element doesn't fit the area. "left" could get negative.

Platforms:

Chrome

Version: My dialog sample is using 2.0.2

FZ-Iskandar commented 2 weeks ago

I have the same issue

edit8080 commented 2 weeks ago

I have the same problem, but I solved it by using CSS selector for 'bounds' attribute

https://quilljs.com/docs/configuration#bounds

image image