Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quill editor popUp is being cutoff in the left when we try to add link

Tags:

quill

When I try to add link to very left text in quill editor the popUp opened is hiding in the left side.And I am using Snow theme.

The below image shows my issue.

enter image description here

like image 774
Namani Supriya Avatar asked Nov 01 '25 03:11

Namani Supriya


2 Answers

If someone encounter this, by default Quill is bound to document.body. On the instance you can use the bounds property to define your own container where Quill (tooltip, etc...) will be contained: Quill documentation

like image 190
Matthieusch Avatar answered Nov 04 '25 19:11

Matthieusch


From the official documentation Quill is bound to document.body, you need to modify it:

  • Just try this
<div id="quillContainer">
 <ReactQuill
 theme="snow"
 bounds={'#quillContainer'}
 />
</div>
like image 20
Md Shahnawaz Ansari Avatar answered Nov 04 '25 19:11

Md Shahnawaz Ansari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!