From 3ab5cab7ba9fa21f4e14184d6f96119998768c9c Mon Sep 17 00:00:00 2001 From: xdan Date: Mon, 18 Nov 2024 22:23:58 +0300 Subject: [PATCH] New version 4.2.42 Read more https://github.com/xdan/jodit/blob/main/CHANGELOG.md --- package-lock.json | 4 ++-- package.json | 2 +- src/jodit.ts | 12 +++++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index e0b0df07..31604de8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jodit", - "version": "4.2.41", + "version": "4.2.42", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jodit", - "version": "4.2.41", + "version": "4.2.42", "license": "MIT", "dependencies": { "autobind-decorator": "^2.4.0" diff --git a/package.json b/package.json index 10968610..734b9ece 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jodit", - "version": "4.2.41", + "version": "4.2.42", "description": "Jodit is an awesome and useful wysiwyg editor with filebrowser", "main": "build/jodit.min.js", "types": "./types/index.d.ts", diff --git a/src/jodit.ts b/src/jodit.ts index 52eaa9b1..7c34816b 100644 --- a/src/jodit.ts +++ b/src/jodit.ts @@ -154,7 +154,17 @@ export class Jodit extends ViewWithToolbar implements IJodit, Dlgs { } /** - * Method wrap usual Has Object in Object helper for prevent deep object merging in options* + * Method wrap usual object in Object helper for prevent deep object merging in options* + * ```js + * const editor = Jodit.make('#editor', { + * controls: { + * fontsize: { + * list: Jodit.atom([8, 9, 10]) + * } + * } + * }); + * ``` + * In this case, the array [8, 9, 10] will not be combined with other arrays, but will replace them */ static atom(object: T): T { return markAsAtomic(object);