Skip to content
Discussion options

You must be logged in to vote

You should take a look at the react AutoLinkPlugin source. Should be straightforward to port to vanilla js. The $create functions are just constructors that will only ever create a single node, so just the link and no text. Other functions or commands are used for higher-level operations such as $toggleLink.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@peppies
Comment options

Answer selected by peppies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants