Skip to main content

React editor demo: the N1ED component

When to use

You build your admin panel or CMS in React and want the editor as a component: set up by props, reporting its HTML to your state, and still carrying the whole N1ED toolset — blocks, widgets, the file manager and the image editor.

How it works

<N1ED> from @edsdk/n1ed-react is the TinyMCE React component with N1ED plugged in. The apiKey prop loads the editor with the configuration from the Dashboard, the init prop takes the usual TinyMCE options, and onEditorChange hands you the HTML on every change — the panel under the editor shows exactly that. The demo imports its packages from a CDN; in your app they come from npm.

How to start using

Install the N1ED React component from npm for that.

It is the TinyMCE React component with N1ED already plugged in, so the props you know from TinyMCE work unchanged.