Skip to content

v3.0.2

Choose a tag to compare

@JiHong88 JiHong88 released this 01 Apr 16:17
· 107 commits to release since this release
9153eb1

☀️ SunEditor v3.0.2

ℹ️ This release supersedes 3.0.0 and 3.0.1.

SunEditor v3 is a full rewrite. The codebase, plugin system, and internal structure have all been rebuilt.

Major Changes

  • Full codebase rewrite with modular plugin system
  • Dropped IE and Legacy Edge support; modern browsers only (Chrome/Edge 119+, Firefox 121+, Safari 17.2+)
  • Theme support (dark, cobalt, cream, midnight) with CSS custom properties
  • Increase default editor font size from 13px to 16px
  • Increase UI font sizes: main 13→14px, button 12→14px, statusbar 10→12px

New Feature

  • Support multi root editor.
  • @Mention with autocomplete
  • Markdown view mode (GFM)
  • Code block with language selector
  • Drawing (freehand canvas)
  • PDF export
  • Media galleries (image, video, audio, file)
  • Embed support (audio/video/iframe)
  • Find & Replace (regex, case-sensitive, whole-word, live search)
  • Bottom toolbar, sub toolbar (selection toolbar)
  • Page navigator with A4 page break support
  • Auto linkify — auto-converts URLs to hyperlinks
  • Custom keyboard shortcuts

Enhancement

  • Table editing — column/row resize, cell merge/split, cell styling, border controls, clipboard copy/paste
  • Inline/block formatting engine rewrite
  • Better selection and cursor handling
  • Improved scroll and focus management
  • Improved mobile support
  • Link editing — rel attributes, default protocol, display text
  • Richer event hooks (onScroll, onBeforeInput, onDrop, onPaste, onSave, and more)
  • TypeScript definitions included

Breaking Changes

  • v2 API is not compatible — see Migration for details
  • suneditor.create() replaces SUNEDITOR.create() for ESM usage
  • Plugin registration changed — plugins are now passed as string names or objects
  • CSS import paths changed: suneditor/css/editor, suneditor/css/contents
  • IE11 and Legacy Edge are no longer supported