GithubHelp home page GithubHelp logo

hemantsinghawgp / draftjs-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 276 KB

Simple text editor built using Draft.js within ReactJS.

Home Page: https://draftjs-demo-rho.vercel.app/

HTML 10.58% JavaScript 73.37% CSS 16.06%

draftjs-demo's Introduction

Draft.js Text Editor

This is a simple text editor built using Draft.js within ReactJS. It allows users to create and edit text with various formatting options such as headings, bold, italic, underline, and highlighted text.

alt text

Features

  • Users can format text using Markdown-like syntax:
    • Typing # as the first string in a line & pressing space makes the text a Heading 1.
    • Typing * as the first string in a line & pressing space makes the text bold.
    • Typing ** as the first string in a line & pressing space makes the text red.
    • Typing *** as the first string in a line & pressing space makes the text underline.
    • Typing ``` and pressing space creates highlighted text.
  • Users can save their work to local storage and retrieve it upon revisiting the page.

Getting Started

To run this project locally, follow these steps:

  1. Clone this repository to your local machine.
  2. Navigate to the project directory in your terminal.
  3. Install dependencies using npm install.
  4. Start the development server using npm start.
  5. Open your browser and go to http://localhost:3000 to view the app.

Technologies Used

  • ReactJS
  • Draft.js
  • HTML/CSS

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

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

draftjs-demo's People

Contributors

hemantsinghawgp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.