Skip to content

This is an extension for CodeMirror 6 to add a clickable link icon next to a valid URL.

License

Notifications You must be signed in to change notification settings

A99US/CM6-TextToLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

CodeMirror 6 - TextToLink Extension

This is an extension for CodeMirror 6 to add a clickable link icon next to a valid URL.

Demo

Demo On GitHub Page

How To Use

First you need to add the extension :

npm i cm6-texttolink

And then import the function :

import { TextToLink, hyperLinkStyle } from 'cm6-texttolink'

And then you can add the functions to extension array :

let extension = [ basicSetup, TextToLink(EditorView), hyperLinkStyle ];

Credit

SVG Icon and CSS style are from @uiwjs/react-codemirror/hyper-link

License

MIT

About

This is an extension for CodeMirror 6 to add a clickable link icon next to a valid URL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published