@nextlint/core
TypeScript icon, indicating that this package has built-in type declarations

1.4.2 • Public • Published

Introduce

Headless editor with pre-existing plugins. Use by @nextlint/svelte

Setup

Nextlint core with written in pure typescript, Can you nextlint core with any frontend framework you like.

In this example we create a test-editor vanilla project using vite:

pnpm create vite
cd test-editor
pnpm add @nextlint/core

Setup editor:

<div id="editor" />

<script>
  import {createEditor} from '@nextlint/core';
  const editor = createEditor({
    element: document.getElementById('editor'),
    content: '',
    placeholder: 'Start writing...'
  });
</script>

Contributing

Package Sidebar

Install

npm i @nextlint/core

Weekly Downloads

12

Version

1.4.2

License

none

Unpacked Size

15.3 kB

Total Files

15

Last publish

Collaborators

  • lynhan318