wyswyg
v1.0.3
Published
A simple and customizable WYSIWYG editor for React that supports basic text formatting like **bold** and *italic*.
Downloads
7
Maintainers
Readme
React WYSIWYG Editor
A simple and customizable WYSIWYG editor for React that supports basic text formatting like bold and italic.
Installation
To install the package, run the following command:
npm install wyswyg
Usage
Importing the Component
You can import the SimpleWYSIWYG
component from the package as shown below:
import React from 'react';
import SimpleWYSIWYG from 'wysiwyg';
Basic Example
Here is a simple example demonstrating how to use the SimpleWYSIWYG
component:
const App = () => {
return (
<div>
<h1>Simple WYSIWYG Editor</h1>
<SimpleWYSIWYG initialValue="<p>Type here and format text using bold or italic!</p>" />
</div>
);
};
export default App;