Skip to content

Commit 0fc624e

Browse files
committed
chore(release): 3.0.5
1 parent e796670 commit 0fc624e

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<a name="3.0.5"></a>
2+
## [3.0.5](https://github.com/kolkov/angular-editor/compare/v3.0.4...v3.0.5) (2026-01-30)
3+
4+
### Bug Fixes
5+
* **custom-class:** Preserve HTML structure in multiline selections ([#594](https://github.com/kolkov/angular-editor/issues/594)) ([#595](https://github.com/kolkov/angular-editor/pull/595))
6+
- Fixed `createCustomClass()` stripping HTML when applying custom classes to multiline content
7+
- Added `mode` option to `CustomClass`: `'inline'`, `'block'`, `'auto'` (default)
8+
- Smart detection: inline mode for single blocks, block mode for multiple paragraphs
9+
- Block mode applies class to each block element (P, DIV, H1-H6, LI, etc.)
10+
- Uses DOM Range API with `extractContents()` + `insertNode()` instead of `sel.toString()`
11+
12+
### Features
13+
* **config:** Add `textDirection` option for RTL/LTR support ([#520](https://github.com/kolkov/angular-editor/issues/520)) ([#592](https://github.com/kolkov/angular-editor/pull/592))
14+
- New config property: `textDirection?: 'ltr' | 'rtl' | 'auto'`
15+
- Binds to HTML `dir` attribute on editor element
16+
- Thanks to @jamesey2001 for the contribution
17+
18+
---
19+
120
<a name="3.0.4"></a>
221
## [3.0.4](https://github.com/kolkov/angular-editor/compare/v3.0.3...v3.0.4) (2025-12-18) - Security Hotfix
322

projects/angular-editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kolkov/angular-editor",
3-
"version": "3.0.4",
3+
"version": "3.0.5",
44
"description": "A simple native WYSIWYG editor for Angular 20+. Rich Text editor component for Angular.",
55
"author": "Andrey Kolkov <a.kolkov@gmail.com>",
66
"repository": "https://github.com/kolkov/angular-editor",

0 commit comments

Comments
 (0)