Link button broken
See original GitHub issueThe link button on my toolbar is failing to link the selected text.
Steps for Reproduction
// Toolbar Options.
[
[{ header: [false, 1, 2] }],
["bold", "italic", "underline"],
["blockquote"],
["link"]
]
- Create new Quill editor with the above toolbar options.
- Insert text and then select it.
- Click the ‘link’ toolbar button.
Expected behavior: Highlighted text is converted into an anchor tag.
Actual behavior: Highlighted text is unaffected and the following error appears in the console
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
.
If you refer to the js/quill.js
file in the 1.0.3
release tarball, the error is happening around line 9420
(which seems to originate here).
Platforms: Google Chrome 53.0.2785.101 (64-bit) running on OSX 10.11.6
Version: 1.0.3
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:16 (7 by maintainers)
Top Results From Across the Web
HTML/CSS button link not working - Stack Overflow
I'm trying to put a link to another page of my website inside this button I've made using CSS. However, the button already...
Read more >How do I find and fix a broken link? - Siteimprove Support
Steps to fix a broken link Select the "Confirmed broken links" tab. Note: See related article on“How to manage your broken links”. Select...
Read more >Button links not working - General - Forum | Webflow
Hi Webflow community, I have a button on my website that's linked to another page, and somehow it stopped working.
Read more >How to Find and Fix Broken Links (5 Methods) - Kinsta
Broken links are bad for user experience and SEO. ... A picture of Phillip Stemann looking into the camera wearing a blue button...
Read more >Right Click start button links broken - Microsoft Q&A
Right Click start button links broken. Just did an in place upgrade from win 7 ultimate to win 10 pro. Most of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ahh, that makes sense. Modified my toolbar options to the following and the link tooltip is now working as expected:
Thanks for the insight!
I’m not seeing any errors on Mac + Chrome (same version is reported). Codepen displays errors to the console. You can just create an error to confirm.
There is a
bounds
property to tell Quill where it can show up horizontally. By default it is the whole page and from the screenshot it looks like you have something with a higher z-index covering it. If there’s not space to show the tooltip vertically, it is by default hidden. You can overwrite the CSS rule if you plan to have the editing container autogrow, but will cause problems when you scroll: