4.2.1
🐛 Bug Fix
-
Selection by triple click removes close tag + open tag of next paragraph #1101
Added optionsselect.normalizeTripleClick: boolean = true
to normalize selection after triple click
For disable this behavior setselect.normalizeTripleClick: false
Jodit.make('#editor', { select: { normalizeTripleClick: false } });
4.1.12
💥 Breaking Change
- Removed the default export from the watch decorator. We refrain from using default exports in this project (refer to CONTRIBUTING.md for more details).
Before:
import watch, { watch as watch2 } from 'jodit/core/decorators/watch/watch';
Now only:
import { watch } from 'jodit/core/decorators/watch/watch';
🐛 Bug Fix
4.1.11
- Fixed a bug within the FileBrowser module. The issue was due to the import order; the Ajax configuration was applied after the module had been initialized.
4.1.9
- Added
AbortError
to theJodit.modules
namespace. This is a custom error that is thrown when the user cancels the operation.
const jodit = Jodit.make('#editor');
jodit.async
.promise((res, rej) => fetch('./test.php').then(res).catch(rej))
.catch(error => {
if (Jodit.modules.Helpers.isAbortError(error)) {
console.log('Operation was aborted');
}
});
jodit.destruct();
4.1.7
4.1.1
🏠 Internal
- Update dependencies
@tsconfig/node18 ^18.2.2 → ^18.2.4
@types/node ^20.11.25 → ^20.12.2
@typescript-eslint/eslint-plugin ^7.1.1 → ^7.5.0
@typescript-eslint/parser ^7.1.1 → ^7.5.0
autoprefixer ^10.4.18 → ^10.4.19
axios ^1.6.7 → ^1.6.8
core-js ^3.36.0 → ^3.36.1
cssnano-preset-advanced ^6.1.0 → ^6.1.2
eslint-plugin-mocha ^10.4.0 → ^10.4.1
glob ^10.3.10 → ^10.3.12
mocha ^10.3.0 → ^10.4.0
open ^10.0.4 → ^10.1.0
postcss >=8.4.35 → >=8.4.38
stylelint ^16.2.1 → ^16.3.1
typescript ^5.4.2 → ^5.4.3
webpack 5.90.3 → 5.91.0
webpack-dev-middleware ^7.0.0 → ^7.2.0
webpack-dev-server ^5.0.2 → ^5.0.4
- Update dependencies
@types/node ^20.10.7 → ^20.11.25
@typescript-eslint/eslint-plugin ^6.18.0 → ^7.1.1
@typescript-eslint/parser ^6.18.0 → ^7.1.1
autoprefixer ^10.4.16 → ^10.4.18
axios ^1.6.5 → ^1.6.7
core-js ^3.35.0 → ^3.36.0
css-loader ^6.8.1 → ^6.10.0
css-minimizer-webpack-plugin ^5.0.1 → ^6.0.0
cssnano-preset-advanced ^6.0.3 → ^6.1.0
eslint ^8.56.0 → ^8.57.0
eslint-plugin-mocha ^10.2.0 → ^10.4.0
eslint-plugin-prettier ^5.1.2 → ^5.1.3
karma ^6.4.2 → ^6.4.3
karma-firefox-launcher ^2.1.2 → ^2.1.3
less-loader ^11.1.4 → ^12.2.0
mini-css-extract-plugin ^2.7.6 → ^2.8.1
mocha ^10.2.0 → ^10.3.0
node-jq ^4.2.2 → ^4.3.1
open ^10.0.3 → ^10.0.4
postcss >=8.4.33 → >=8.4.35
postcss-loader ^7.3.4 → ^8.1.1
prettier ^3.1.1 → ^3.2.5
style-loader ^3.3.3 → ^3.3.4
stylelint ^16.1.0 → ^16.2.1
typescript ^5.3.3 → ^5.4.2
webpack 5.89.0 → 5.90.3
webpack-dev-server ^4.15.1 → ^5.0.2
webpack-hot-middleware ^2.26.0 → ^2.26.1
4.0.15
- Fixed bug in
beforeInit
hook. If the hook returned a promise, and the editor was destroyed after that,
then after resolving the promise, the editor continued the initialization procedure
4.0.8
- Fixed a bug in the plugins module when extra plugins did not cause the editor to be redrawn after initialization
4.0.7
- Added
search.useCustomHighlightAPI
option to the "Search" plugin to use the built-in text highlighting API https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API
If the browser does not support this API, then standard text highlighting will be used by wrapping it in the<span jd-tmp-selection>
tag. - Added Finnish (Suomi) translation #1081