Skip to content

Commit

Permalink
New version 4.2.42 Read more https://github.com/xdan/jodit/blob/main/…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Nov 18, 2024
1 parent 5fbc8bc commit 3ab5cab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 11 additions & 1 deletion src/jodit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(object: T): T {
return markAsAtomic(object);
Expand Down

0 comments on commit 3ab5cab

Please sign in to comment.