Socket
Socket
Sign inDemoInstall

writly

Package Overview
Dependencies
123
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    writly

`writly` is a library that offers a markdown WYSIWYG editor as a react component. It's built upon facebook's `lexical` and `lexical-playground` to ensure performant rich text editing. [Try it out yourself!](https://www.writ.ly)


Version published
Weekly downloads
4
decreased by-80%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Writly

writly is a library that offers a markdown WYSIWYG editor as a react component. It's built upon facebook's lexical and lexical-playground to ensure performant rich text editing. Try it out yourself!

Installation

npm install writly

Usage

import { Writly } from "writly";
import "writly/writly.css";

export default function App() {
  return (
    <div style={{ width: "650px" }}>
      <Writly />
    </div>
  );
}

If you need to access the underlying LexicalEditor instance, you can pass a reference to Writly.

import { Writly } from "writly";
import "writly/writly.css";
import React from "react";

export default function App() {
  const ref = useRef();
  return (
    <div style={{ width: "650px" }}>
      <Writly ref={ref} />
    </div>
  );
}

Development

Feel free to add any useful lexical plugins!

  1. Clone the repository

  2. Install dependencies:

  • npm install
  1. Start the local Storybook server:
  • npm run storybook

License

writly is licensed under the MIT License.

FAQs

Last updated on 27 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc