@kolkov/angular-editor 3.0.4 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,43 @@
1
+ <a name="3.1.0"></a>
2
+ ## [3.1.0](https://github.com/kolkov/angular-editor/compare/v3.0.5...v3.1.0) (2026-07-16)
3
+
4
+ ### Features
5
+ * **deps:** Upgrade to Angular 22 with TypeScript 6.0 support
6
+ * **testing:** Migrate from Karma/Jasmine to Vitest via `@angular/build:unit-test` builder; expand test suite from 19 to 206 tests (76.74% statement coverage)
7
+ * **linting:** Migrate ESLint config from `.eslintrc.json` to `eslint.config.mjs` (ESLint 10 flat config)
8
+ * **build:** Replace `@angular-devkit/build-angular` builders with `@angular/build` equivalents
9
+ * **templates:** Migrate `*ngIf`/`*ngFor` structural directives to `@if`/`@for` built-in control flow
10
+ * **di:** Migrate constructor injection to `inject()` function where applicable
11
+
12
+ ### Internal
13
+ * Peer dependencies now include `^22.0.0` (Angular 20 and 21 still supported)
14
+ * ESLint migrated to flat config (`eslint.config.mjs`)
15
+ * CI/CD: split into separate `ci.yml`, `publish.yml`, and `release.yml` workflows
16
+ * CI: upgrade Node.js to 24
17
+ * Add Codecov coverage integration
18
+ * Add Dependabot configuration for automated dependency updates
19
+
20
+ ---
21
+
22
+ <a name="3.0.5"></a>
23
+ ## [3.0.5](https://github.com/kolkov/angular-editor/compare/v3.0.4...v3.0.5) (2026-01-30)
24
+
25
+ ### Bug Fixes
26
+ * **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))
27
+ - Fixed `createCustomClass()` stripping HTML when applying custom classes to multiline content
28
+ - Added `mode` option to `CustomClass`: `'inline'`, `'block'`, `'auto'` (default)
29
+ - Smart detection: inline mode for single blocks, block mode for multiple paragraphs
30
+ - Block mode applies class to each block element (P, DIV, H1-H6, LI, etc.)
31
+ - Uses DOM Range API with `extractContents()` + `insertNode()` instead of `sel.toString()`
32
+
33
+ ### Features
34
+ * **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))
35
+ - New config property: `textDirection?: 'ltr' | 'rtl' | 'auto'`
36
+ - Binds to HTML `dir` attribute on editor element
37
+ - Thanks to @jamesey2001 for the contribution
38
+
39
+ ---
40
+
1
41
  <a name="3.0.4"></a>
2
42
  ## [3.0.4](https://github.com/kolkov/angular-editor/compare/v3.0.3...v3.0.4) (2025-12-18) - Security Hotfix
3
43
 
package/README.md CHANGED
@@ -3,16 +3,16 @@
3
3
  </p>
4
4
 
5
5
  # AngularEditor
6
- [![npm version](https://badge.fury.io/js/%40kolkov%2Fangular-editor.svg)](https://badge.fury.io/js/%40kolkov%2Fangular-editor)
7
- [![npm](https://img.shields.io/npm/v/@kolkov/angular-editor.svg)](https://www.npmjs.com/package/@kolkov/angular-editor)
8
- [![CI](https://github.com/kolkov/angular-editor/actions/workflows/publish.yml/badge.svg)](https://github.com/kolkov/angular-editor/actions/workflows/publish.yml)
6
+ [![npm version](https://badge.fury.io/js/%40kolkov%2Fangular-editor.svg)](https://www.npmjs.com/package/@kolkov/angular-editor)
7
+ [![CI](https://github.com/kolkov/angular-editor/actions/workflows/ci.yml/badge.svg)](https://github.com/kolkov/angular-editor/actions/workflows/ci.yml)
8
+ [![Coverage](https://codecov.io/gh/kolkov/angular-editor/branch/main/graph/badge.svg)](https://codecov.io/gh/kolkov/angular-editor)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/@kolkov/angular-editor.svg)](https://www.npmjs.com/package/@kolkov/angular-editor)
10
10
  [![demo](https://img.shields.io/badge/demo-StackBlitz-blueviolet.svg)](https://stackblitz.com/edit/angular-editor-wysiwyg)
11
11
  [![](https://data.jsdelivr.com/v1/package/npm/@kolkov/angular-editor/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@kolkov/angular-editor)
12
12
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
13
13
  [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/AndreyKolkov)
14
14
 
15
- A simple native WYSIWYG/Rich Text editor for Angular 20+
15
+ A simple native WYSIWYG/Rich Text editor for Angular 22+
16
16
 
17
17
  ![Nov-27-2019 17-26-29](https://user-images.githubusercontent.com/216412/69763434-259cd800-113b-11ea-918f-0565ebce0e48.gif)
18
18
 
@@ -30,6 +30,8 @@ Install via [npm][npm] package manager
30
30
  npm install @kolkov/angular-editor --save
31
31
  ```
32
32
  ### Versions
33
+ 3.1.0 and above - for Angular v22+ (CSS variables, Vitest testing)
34
+
33
35
  3.0.0 and above - for Angular v20+ (CSS variables, modern Angular 20)
34
36
 
35
37
  2.0.0 and above - for Angular v13-19
@@ -40,10 +42,10 @@ npm install @kolkov/angular-editor --save
40
42
 
41
43
  0.15.x - for Angular v6.x.x
42
44
 
43
- **Note:** Version 3.0.0 requires:
44
- - Angular 20.0.0 or higher (also compatible with Angular 21)
45
+ **Note:** Version 3.1.0 requires:
46
+ - Angular 22.0.0 or higher
45
47
  - RxJS 7.8.0 or higher
46
- - TypeScript 5.4 or higher
48
+ - TypeScript 6.0 or higher
47
49
 
48
50
  Attention! `alpha` and `beta` versions may contain breaking changes.
49
51