Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Rich text editing in React with Draft.js
Rating: 3.8 out of 5(35 ratings)
112 students

Rich text editing in React with Draft.js

Add and modify rich text in your React application
Last updated 6/2019
English
English [Auto],

What you'll learn

  • How to add rich text editor component to your React application
  • How to add features like bold and underline to the editor
  • How to save rich text content to database
  • How to load rich text content from database
  • How to edit saved content
  • How to display saved rich text content e.g. as HTML

Course content

5 sections19 lectures1h 49m total length
  • Introduction1:26

    Learn to build rich text editors in React with Draft.js, covering editor setup, content state, and bold and underline formatting. Save and display edited content in your app.

  • Course resources0:09
  • What is Draft.js?2:57

    Draft.js is a React framework for building rich text editors, powered by an immutable model and open-sourced by Facebook. It renders on every keystroke and supports styling via toolbar buttons.

  • EditorState1:29

    EditorState is an immutable, all-encompassing record that represents the entire editor state, including the current text content, the current selection, and the fully decorated contents with styles.

  • ContentState1:45

    Explore how content state captures blocks and entity ranges as the editor's full contents in Draft.js. Learn how getCurrentContent retrieves content being rendered and its before and after selection states.

  • Summary of EditorState and ContentState1:02

    Explore how editor state and content state objects organize Draft.js content, including the editor contents and two selection states before and after rendering, and how they are used.

Requirements

  • Basic knowledge of Javascript and React

Description

In this course we will go through how to add rich text editing features (such as bold, underline, italic) to your React application, using an open source framework called Draft.js.


You will learn

  • How to add rich text editor component to your React application

  • How to add features like bold and underline to the editor

  • How to save rich text content to database

  • How to load rich text content from database

  • How to edit saved content

  • How to display saved rich text content e.g. as HTML


Prior knowledge of rich text editing and Draft.js is NOT required. Basic knowledge on React is however required because we will be concentrating on Draft.js features.

Who this course is for:

  • React developers who want to learn how to handle rich text editing in a React application