Changelog
4.2.21
Changelog
4.2.18
When connecting third-party scripts, two attributes are now added to the script tag. Jodit not hiding the raw textarea #1086
{
"crossorigin": "anonymous",
"referrerpolicy": "no-referrer"
}
Changelog
4.2.17
Removed conversion of list arrays into objects when creating a button in the toolbar. Previously the code looked like:
Jodit.make('#editor', {
constrols: {
lineHeight: {
list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2]
}
}
});
was implicitly transformed into an object of the form:
Jodit.make('#editor', {
constrols: {
lineHeight: {
list: {
1: '1',
2: '2',
1.1: '1.1',
1.2: '1.2',
1.3: '1.3',
1.4: '1.4',
1.5: '1.5'
}
}
}
});
Thus, due to the nature of integer keys, the order of the elements was lost. Now such a transformation does not occur.
In your code you clearly need to check what came into list
and if it is an array, then use it as is.
Jodit.make('#editor', {
constrols: {
lineHeight: {
list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2],
update(editor: IJodit, button): boolean {
if (Array.isArray(button.control)) {
// Work with array
}
}
}
}
});