Replies: 1 comment 1 reply
-
|
This is impossible to debug without seeing the all of the code, the AutoLinkPlugin in react does not have this behavior, so whatever is happening is specific to how your editor is configured and what other code is running. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I ported the React AutoLinkPlugin to Vanilla JS. It works pretty good, but not perfectly. I've made very little changes to the script.
One strange problem I'm having is that when I copy and paste links into the editor one line at a time. The first paste turns into a link. I press Enter to create a new line and paste a second link, but the AutoLinkPlugin fails to turn it into a link. Then when I press Enter and go to to the third line, the link will convert to a link. It's like every other link works. Here is a screenshot:
If I switch to Markdown mode and back again, it will skip linking the first link, but will autolink the rest, as seen below:
Lastly, if I switch to code block and back, it will combine all the links into a single paragraph, but only 2 in odd places will not be turned into links, as seen below:
Note: The black-bordered boxes around each line is my CSS format to denote paragraph nodes.
Can someone guide me to what is causing this problem and how to get the AutoLink Plugin working for all URLs and not just some of them?
Beta Was this translation helpful? Give feedback.
All reactions