cm6-texttolink

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i cm6-texttolink

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

7.65 kB

Total Files

4

Last publish

Collaborators

  • agus.lupin