Earlier this week I published my first full Angular module —
@tinynodes/ngx-editorjs on NPM.
The module is a set of features for Angular (7+) to create and control EditorJS instances.
The library exports several features once the
NgxEditorJSModule has been included in your project.
This is the main directive which can be used on any element with the
[ngxEditorJS] selector and and
<div id="my-editor" ngxEditorJS></div>
This will handle creating the editor instance via the
This component can be used in any Angular component using the
<ngx-editorjs> tag. Again this component can take a set of blocks, it also provides a
holder input for overriding the ID.
This service provides handling the life-cycle of the EditorJS instances, and exposes the underlying EditorJS API — in future releases more of the API will be exposed via service methods to make controlling the container easier.
The module is configurable and allows EditorJS plugins to be injected into the library — (see README.md) on how to do this in a AOT-friendly way.
If you find any issues or have feature requests these can be left on the GitHub Issues page.
You can also now read my blog at tane.dev instead of on Medium.