Skip to content

nemrosim/react-lexical-examples

Repository files navigation

image.jpg

Tutorial on how to use Lexical with React JS; Basics with examples.

What will be covered:

  • Prerequisites
  • Start
  • History plugin
  • Nodes
  • Rich Text
  • Theme
  • Headings. Helpers and nodes config.
  • How to create your own command with the payload
  • How to create a custom Node

image-drop.gif

Tutorial on creating a draggable element with Lexical JS; Basics with examples.

What will be covered:

  • Prerequisites
  • Getting started
  • Hover styles
  • Add draggable element on hover
  • Add “on drag enter” event handlers
  • Add “on drop” event handlers
  • Reset state after drop event
  • Final touch
  • Image/s drop

What will be covered:

  • Transformers
  • MarkdownShortcutPlugin
  • Disable draggable element on markdown mode

links.gif

Tutorial on how to use Lexical Link Plugins with React: LinkPlugin, AutoLinkPlugin, LexicalClickableLinkPlugin

What will be covered

  • LinkPlugin (wrap node with a link on link paste)
  • AutoLinkPlugin (automatically wrap with a link on text change)
  • LexicalClickableLinkPlugin (redirect by clicking on a link in edit mode)

placeholder.gif

Tutorial on how to add a placeholder to the Lexical's empty Node element.

What will be covered

  • Register lexical update listener
  • Lexical children data and styles
  • Managing placeholder data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published