You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating a link, if we try to change the font size of the cursor immediately after the link (without any space) the text appears to be placed into the span.ql-cursor element and the formatting is not applied as desired. Additionally back spacing that text now will delete the last character of the link (even when the cursor is placed after the newly entered text) and move the cursor to the end of the link.
Highlight that text up to the last character entered (it's important that the last typed character is in your range).
Add a link to the selected text.
After the link is added, without making any other keystrokes click to the spot immediately after the newly created link so that you are no longer highlighting the text
Apply a new font size (i.e. the default on quilljs.com/docs/formats is "Normal", "Huge" makes this problem very obvious).
Type a few characters (observe the text size is still Normal and not Huge).
Now "backspace" (observe that the last character typed is not deleted, instead the last character of the link is deleted, also the cursor has moved to immediately after the link).
Open dev tools to the "Elements" tab.
Use the clicker to click your text content
Observe that the HTML has actually applied these styles to the element with ql-cursor as a class and that the special unicode character  is inside of the ql-cursor span with your content
Expected behavior:
The text is Huge
Deleting deletes the character prior to the cursor
The formatted element is not inside the span.ql-cursor element
Actual behavior:
Text size remains Normal
Deleting deletes the last character of the link and moves the cursor to the end of the link
We are not typing inside of the span.ql-cursor element
Platforms:
Chrome (87.0.4280.88), Windows 10 (10.0.17763)
Version:
1.3.6
The text was updated successfully, but these errors were encountered:
Along this similar vein. There is an additional bug.
If after step 6 and before step 7, you click the link text such that your cursor is somewhere within the tag, there will be a console error like the following:
quill.min.js:7 Uncaught TypeError: l.position is not a function at t.value (quill.min.js:7) at t.value (quill.min.js:7) at e.<anonymous> (quill.min.js:7) at e.o.emit (quill.min.js:7) at e.value (quill.min.js:7) at t.value (quill.min.js:7) at quill.min.js:7 at quill.min.js:7 at Array.forEach (<anonymous>) at e.value (quill.min.js:7)
Oh and one more. If you take the route of the second bug (listed in the comment immediately above), after you get that error, all formatting changes made from clicking the toolbar cause the editor to lose focus.
After creating a link, if we try to change the font size of the cursor immediately after the link (without any space) the text appears to be placed into the span.ql-cursor element and the formatting is not applied as desired. Additionally back spacing that text now will delete the last character of the link (even when the cursor is placed after the newly entered text) and move the cursor to the end of the link.
Steps for Reproduction
ql-cursor
as a class and that the special unicode character  is inside of the ql-cursor span with your contentExpected behavior:
Actual behavior:
Platforms:
Chrome (87.0.4280.88), Windows 10 (10.0.17763)
Version:
1.3.6
The text was updated successfully, but these errors were encountered: