Editor
The accessible rich-text editor as Web Components. It works in any framework and checks content while editors write.
Installation
npm install @nl-design-system-community/editorUsage
Import the Web Components and the theme:
import '@nl-design-system-community/editor';
import '@nl-design-system-community/editor/theme.css';Place the editor on the page. The initial value goes in the value slot:
<clippy-editor>
<div slot="value">
<p>Content here...</p>
</div>
</clippy-editor>Set up the toolbar in the configuration.
React
Using React? The Web Components are also available as React components. See the React examples.
npm install @nl-design-system-community/editor-react