New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@42how/editor-for-react

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@42how/editor-for-react

wangEditor component for React

  • 1.0.9
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

wangEditor for React

MIT License jest badge

English documentation

介绍

基于wangEditor 封装的 React 组件。

安装

  1. 安装组件包
yarn add @42how/editor-for-react
# 或者npm install @42how/editor-for-react --save

  1. 安装核心包
yarn add @42how/editor

# 或者 npm install @42how/editor --save
  1. 导入组件
import { Editor, Toolbar } from "@42how/editor-for-react";

使用

详情参考wangEditor react 使用文档

在 Next.js 下使用

import dynamic from "next/dynamic";
const WangEditor = dynamic(
  // 引入对应的组件 设置的组件参考上面的wangEditor react使用文档
  () => import("../components/myEditor"),
  { ssr: false }
);

export default function Home() {
  return <WangEditor />;
}

使用案例可以参考wangeditorV5-nextjs-demo

Keywords

FAQs

Package last updated on 04 Jul 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc