1.0.0 • Published 12 months ago

cm6-texttolink v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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