New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@gmsoft/tiny-editor

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmsoft/tiny-editor

富文本编辑器 react 组件

latest
npmnpm
Version
1.0.2
Version published
Maintainers
4
Created
Source

tiny-editor

富文本编辑器 react 组件

usage

yarn add @gmsoft/tiny-editor
/**
 * demo
 */
import React from 'react';
import TinyEditor, { TinyViewer } from '@gmsoft/tiny-editor';

export default () => {
  const [value, setValue] = React.useState('');
  return (
    <>
      <TinyEditor
        // 如果需要使用图片上传功能, 要求服务器端返回的数据中包含 url 字段url 字段值为图片的 url
        uploadServer="https://demo.com/file"
        defaultValue="place input something"
        value={value}
        onChange={setValue}
      />
      <div>
        value:
        <TinyViewer>{value}</TinyViewer>
      </div>
    </>
  );
};

usage 效果预览

preview

FAQs

Package last updated on 31 May 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