Skip to content

3.23.3

Compare
Choose a tag to compare
@xdan xdan released this 20 Nov 19:29

3.23.3

πŸš€ New Feature

  • Added option IControlType.childExec Allows you to set a separate handler for list items
Jodit.make('.editor', {
	buttons: [
		{
			name: 'add-date',
			iconURL: 'stuf/dummy.png',
			list: {
				options: 'Open options'
			},
			exec(editor, current, control) {
				editor.s.insertHTML(new Date().toString());
			},
			childExec(editor, current, control) {
				if (control.args[0] === 'options') {
					editor.alert('Options');
				}
			}
		}
	]
});

3.23.2

πŸ› Bug Fix

🏠 Internal

  • Deleted ajax.dataType option, because it was not used

3.23.1

πŸ’₯ Breaking Change

  • Remove IJodit from first argument of Ajax constructor.

πŸš€ New Feature

  • The focus method and the isFocused property have been added to the IJodit interface.
    These are just aliases for the same methods and properties of the Select module.
const editor = Jodit.make('#editor');
editor.focus();
  • The IJodit.fetch method has been added to the IJodit interface,
    which is similar in signature to the fetch method in the browser
const editor = Jodit.make('#editor');
const data = await editor.fetch('https://somesite.com?type=json');

πŸ› Bug Fix

  • Fixed error when using superscript and subscript commands. If the cursor was inside sub or sup tags, then nothing happened.
  • Fixed a bug in the placeholder plugin when indent styles were set for the edit area,
    they were not taken into account in the positioning of the placeholder. As a result, it was shifted relative to the focus.

3.22.1

πŸ’₯ Breaking Change

  • ISnapshot.isBlocked - is readonly now
  • IHistory.snapshot - is readonly now
  • IHistory.processChanges and IHistory.upTick were removed.
  • Instead of IHistory.snapshot.isBlocked=true...IHistory.snapshot.isBlocked=false should be used IHistory.snapshot.transaction(() => {...})
  • IJodit.registerCommand<C extends string> - is generic now
  • IJodit.getNativeEditorValue - marked as internal, please do not use it in your code
  • To class .jodit-container was added background-color: var(--color-background-light-gray);
  • To class .jodit-workplace was added background-color: var(--color-background-default);
  • Selection markers now are marked as temporary with Dom.markTemporary
  • Search plugin move selection to the next found element after replacing. See bug fix section
  • WrapNodes plugin added emptyBlockAfterInit=true option. After the editor is initialized, if it is empty, an empty block will be added to it.

πŸ› Bug Fix

🏠 Internal

core-js                            ^3.25.5  β†’   ^3.26.0
@types/node                       ^18.11.0  β†’  ^18.11.9
@typescript-eslint/eslint-plugin   ^5.40.0  β†’   ^5.42.0
@typescript-eslint/parser          ^5.40.0  β†’   ^5.42.0
autoprefixer                      ^10.4.12  β†’  ^10.4.13
cssnano-preset-advanced             ^5.3.8  β†’    ^5.3.9
eslint                             ^8.25.0  β†’   ^8.26.0
puppeteer                          ^19.0.0  β†’   ^19.2.1
replace                             ^1.2.1  β†’    ^1.2.2
tslib                               ^2.4.0  β†’    ^2.4.1
yargs                              ^17.6.0  β†’   ^17.6.1

3.21.5

3.21.4

πŸ› Bug Fix

🏠 Internal

@types/node ^18.8.3 β†’ ^18.11.0
axios ^1.1.2 β†’ ^1.1.3
css-minimizer-webpack-plugin ^4.2.1 β†’ ^4.2.2
mocha ^10.0.0 β†’ ^10.1.0
postcss >=8.4.17 β†’ >=8.4.18
puppeteer ^18.2.1 β†’ ^19.0.0
stylelint ^14.13.0 β†’ ^14.14.0
stylelint-config-standard ^28.0.0 β†’ ^29.0.0

3.21.1

πŸ’₯ Breaking Change

  • Filebrowser adds a timestamp to the image preview url, now it will be the same as the server returned the changed field in the response.
    This is necessary for better caching in the browser.
  • cleanHTML.denyTags default equal script Those. script tags are disabled by default. If you need them then turn off this rule:
Jodit.make('#editor', {
	cleanHTML: {
		denyTags: false
	}
});
  • The order of the hotkeys plugin keys has been changed to a more popular one.
    It used to be: b+meta, b+ctrl
    Now: meta+b, ctrl+b
    This is expressed in the installation of handlers for keyboard shortcuts:
Jodit.make('#editor', { disablePlugins: ['bold'] }).e.on('meta+b', () => {
	alert('Do smth with text');
	return false;
});

🏠 Internal

  • Remove assert calls from production build.
  • Update deps
core-js                            ^3.24.1  β†’   ^3.25.5
@types/node                        ^18.7.3  β†’   ^18.8.3
@typescript-eslint/eslint-plugin   ^5.33.0  β†’   ^5.39.0
@typescript-eslint/parser          ^5.33.0  β†’   ^5.39.0
autoprefixer                       ^10.4.8  β†’  ^10.4.12
axios                              ^0.27.2  β†’    ^1.1.2
css-minimizer-webpack-plugin        ^4.0.0  β†’    ^4.2.1
eslint                             ^8.22.0  β†’   ^8.25.0
eslint-plugin-tsdoc                ^0.2.16  β†’   ^0.2.17
express                            ^4.18.1  β†’   ^4.18.2
karma                               ^6.4.0  β†’    ^6.4.1
less-loader                        ^11.0.0  β†’   ^11.1.0
postcss                           >=8.4.16  β†’  >=8.4.17
puppeteer                          ^17.0.0  β†’   ^18.2.1
stylelint                         ^14.10.0  β†’  ^14.13.0
stylelint-config-idiomatic-order    v8.1.0  β†’    v9.0.0
stylelint-config-standard          ^27.0.0  β†’   ^28.0.0
synchronous-promise                ^2.0.15  β†’   ^2.0.16
terser-webpack-plugin               ^5.3.4  β†’    ^5.3.6
ts-loader                           ^9.3.1  β†’    ^9.4.1
typescript                          ^4.8.2  β†’    ^4.8.4
webpack                             5.73.0  β†’    5.74.0
webpack-dev-server                  ^4.9.3  β†’   ^4.11.1
webpack-hot-middleware             ^2.25.1  β†’   ^2.25.2
yargs                              ^17.5.1  β†’   ^17.6.0

3.20.4

🏠 Internal

  • Move error-messages functionality to messages module.
  • Improved appearance of popup messages in the messages module.

πŸ› Bug Fix

  • Fixed a bug in the limit plugin. When the limit was reached, he checked the limits strictly,
    when entering from the keyboard. Therefore, every time I change the input focus.
  • Events are added to the same plugin when limits are reached.
    More details can be found in the documentation limit

3.20.3

🏠 Internal

  • En lang is loaded as is
  • Fix types generation:
    • Remove styles
    • Replace aliases

πŸ› Bug Fix

3.20.2

🏠 Internal

  • Tooltip plugin functionality moved to ui/button/tooltip so that it can be used not only with the editor

πŸ› Bug Fix

  • Fixed bug in add-new-line in iframe-mode

3.20.1

πŸš€ New Feature

  • Removed Panel and IPanel
  • Made IDlgs and Dlgs traits
  • Added @derive decorator
  • Mods/Elms/Dlgs traits now uses with @derive
  • Added dtd plugin. Read more

🏠 Internal

πŸ› Bug Fix