diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c7ef20..6587119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,26 @@ All notable changes to MetonaEditor will be documented in this file. +## [0.2.3] - 2026-07-25 + +### Added +- **German (de) locale**: Complete translations for all 60+ UI keys. +- **Floating format toolbar**: Auto-shows bold/italic/code/link/strikethrough buttons above text selection. +- **Cursor/selection APIs**: `getSelectedText()`, `getCursorPosition()`, `setCursorPosition()`, `scrollToLine()`, `selectLine()`, `selectAll()`. +- **Content manipulation APIs**: `replaceAll()`, `replaceAllRegex()`, `lineCount()`, `getLine()`. +- **New events**: `selectionChange` and `cursorMove` emitted for cursor/selection tracking. +- **`floatingToolbar` config option**: Enable/disable floating toolbar (default `true`). + +### Changed +- **`floatingToolbar` added to `DEFAULTS` and `EditorOptions` type**. +- **6 locales now**: zh-CN, en-US, ja, ko, fr, de. + +### Fixed +- **`onLinkClick` type fix**: Removed `as any` cast; properly typed in `EditorOptions` and `DEFAULTS`. +- **Version consistency**: All files synced to 0.2.3. + +--- + ## [0.2.2] - 2026-07-25 ### Added diff --git a/README.md b/README.md index ffc08a0..3a3b6ea 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ > TypeScript 重构 · 零运行时依赖 · 轻量级桌面端 Markdown Editor 库 -[![version](https://img.shields.io/badge/version-0.2.1-blue)](https://git.metona.cn/MetonaTeam/-/packages/npm/@metona-team%2Fmetona-editor) +[![version](https://img.shields.io/badge/version-0.2.3-blue)](https://git.metona.cn/MetonaTeam/-/packages/npm/@metona-team%2Fmetona-editor) [![license](https://img.shields.io/badge/license-MIT-green)](./LICENSE) -[![tests](https://img.shields.io/badge/tests-684%20passed-brightgreen)](./tests) +[![tests](https://img.shields.io/badge/tests-725%20passed-brightgreen)](./tests) [![coverage](https://img.shields.io/badge/coverage-parser%2099%25-brightgreen)](./tests) [![types](https://img.shields.io/badge/types-TypeScript%20strict-blue)](./tsconfig.json) diff --git a/package.json b/package.json index 593e276..606763a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metona-team/metona-editor", - "version": "0.2.2", + "version": "0.2.3", "description": "Type-safe, lightweight, zero-dependency Markdown Editor. Desktop-first. React-free. Single-file bundle.", "type": "module", "main": "dist/metona-editor.js", diff --git a/site/demo.html b/site/demo.html index 30bb0dc..d15bffe 100644 --- a/site/demo.html +++ b/site/demo.html @@ -4,7 +4,7 @@ -MetonaEditor v0.2.0 — 全功能演示 +MetonaEditor v0.2.3 — 全功能演示