Skip to content

TextCraft Pro Editor is a rich text editor React component with a Material Design-inspired theme.

License

Notifications You must be signed in to change notification settings

bentoms-dev/textcraft-pro-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextCraft Pro Editor

TextCraft Pro Editor is a rich text editor React component with a Material Design-inspired theme.

Installation

Install the package using npm:

npm install textcraft-pro-editor

Usage

Import the TextCraftProEditor component and use it in your React application:

import React, { useState } from 'react';
import TextCraftProEditor from 'textcraft-pro-editor';

const App = () => {
  const [editorContent, setEditorContent] = useState('');

  const handleEditorChange = (newContent) => {
    setEditorContent(newContent);
  };

  return (
    <div>
      <h1>Your React App</h1>
      <TextCraftProEditor initialValue={editorContent} onChange={handleEditorChange} />
      <div>
        <h2>Preview:</h2>
        <div dangerouslySetInnerHTML={{ __html: editorContent }} />
      </div>
    </div>
  );
};

export default App;

License

THis project is licensed under the MIT License - see the LICENSE file for details

Contributions

Contributions are welcome! Submit an issue or open a pull request.

About

TextCraft Pro Editor is a rich text editor React component with a Material Design-inspired theme.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published