/tide

๐Ÿชผ ๅผ€็ฎฑๅณ็”จใ€ๆ‰ฉๅฑ•ๆ€งๅผบใ€ๆ”ฏๆŒ Markdown ่ฏญๆณ•ใ€ๅŸบ็ก€ๅŠŸ่ƒฝๅฎŒๅ–„็š„ React ๅฏŒๆ–‡ๆœฌ็ผ–่พ‘ๅ™จใ€‚

Primary LanguageTypeScriptMIT LicenseMIT

Tide is a React-based rich text editor with out-of-the-box functionality, strong extensibility, and comprehensive support for Markdown syntax.

Version Downloads License

Online Demo

https://oschina.gitee.io/tide

Example Code

Features

  • JSON-based storage format
  • Supports Markdown shortcut syntax
    • Headings
    • Quotes
    • Code blocks
    • Tables
    • Hyperlinks
    • Images
    • Separators
    • Bold, italic, strikethrough
    • Unordered lists, ordered lists, task lists
  • Supports pasting Markdown text
  • Supports enhanced Table functionality
  • Supports pasting and dragging images
  • Supports Emoji selection
  • Built-in menu bar
  • Supports multiple themes

Directories

.
โ”œโ”€โ”€ apps
โ”‚   โ”œโ”€โ”€ demo                      # Demo project deployed on Pages, URL: https://oschina.gitee.io/tide
โ”‚   โ””โ”€โ”€ legacy                    # Real-world project used by Gitee Community Edition,
โ”‚                                 # package name is @gitee/tide-legacy
โ”œโ”€โ”€ presets                       # Presets with UI and configuration for @, #, ! mention functionality,
โ”‚                                 # mainly used by @gitee/tide-legacy
โ”œโ”€โ”€ docs                          # Documentation (to be completed), including contribution guidelines
โ”œโ”€โ”€ packages                      # Directory for organizing monorepo packages
โ”‚   โ”œโ”€โ”€ editor                    # Out-of-the-box editor base package, package name is @gitee/tide
โ”‚   โ”œโ”€โ”€ starter-kit               # Integrates commonly used extension packages with the @gitee/tide package
โ”‚   โ”‚                             # to provide an out-of-the-box experience
โ”‚   โ”œโ”€โ”€ common                    # Common utility classes, etc.
โ”‚   โ”œโ”€โ”€ react                     # React wrapper for the editor, facilitating usage in React projects
โ”‚   โ”œโ”€โ”€ extension-*               # Packages starting with extension- that provide
โ”‚   โ”‚                             # extension functionality for the editor
โ”‚   โ”œโ”€โ”€ tsconfig                  # Unified tsconfig configuration
โ”‚   โ””โ”€โ”€ eslint-config-custom      # Unified eslint configuration
โ””โ”€โ”€ scripts                       # Scripts to simplify the development process, etc.

Build and Run

Tide uses turborepo to manage the compilation and distribution of multiple npm packages and pnpm to manage local dependencies.

git clone https://gitee.com/oschina/tide.git

cd tide

# Install dependencies
pnpm i

# Build packages
pnpm build

# Run the demo for development, it will automatically open the browser
pnpm dev:demo --open

Due to the complex dependency relationships in the monorepo, local builds are not currently supported for use through npm link, yarn link, and pnpm link --global.

Contributing

Who's Using Tide

Credits