@dslab/ra-ace-editor
v1.2.1
Published
[![Version](https://img.shields.io/npm/v/@dslab/ra-ace-editor.svg)](https://www.npmjs.com/package/@dslab/ra-ace-editor) [![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/smartcommunitylab/react-admin-pac
Downloads
28
Readme
React-Admin AceEditor
React AceEditor input + field for React-Admin.
Add support for Ace Editor [https://ace.c9.io/] via https://github.com/securingsincity/react-ace
Exports:
- AceEditorField for visualization
- AceEditorInput for editing
Install
yarn install @dslab/ra-ace-editor
Usage
Import the components from the library as needed.
AceEditorField
To use the field in a show view include the component
<AceEditorField mode="html" source="body" theme="monokai" />
AceEditorInput
To use the input in an edit/create form include the component
<AceEditorInput mode="html" source="body" theme="monokai" />
Author
SmartCommunityLab
- Website: http://www.smartcommunitylab.it/
- Github: @smartcommunitylab
Show your support
Give a ⭐️ if this project helped you!
License
Copyright © 2023 SmartCommunityLab. This project is MIT licensed.