3.24.1
π₯ Breaking Change
- Constant array
MAY_BE_REMOVED_WITH_KEY
was replaced on setINSEPARABLE_TAGS
π New Feature
- Method
Select.applyStyle
marked as deprecated. UseSelect.commitStyle
instead.
Before:
jodit.select.applyStyle(
{ color: red },
{
element: 'strong'
}
);
Now:
jodit.s.commitStyle({
element: 'strong',
attributes: {
style: {
color: 'red'
}
}
});
- In the options of the
Select
.commitStyle
method, theattributes
property has been added, which allows you to
also set attributes when applying a style.
jodit.s.commitStyle({
element: 'a',
attributes: {
href: 'https://stename.ru'
}
});
Wraps the selected text into a link with the specified address.
-
When inserting a url, if the text is selected, it will automatically be replaced with a link
-
In Tab plugin allow use shift+tab for lists
π Bug Fix
π Internal
- Fixed deletion of the asserts function from the production code, instead of regular expressions, transformers are used