github xdan/jodit 4.12.34

5 hours ago

🚀 New Feature

  • Image editor / openImageEditor save contract: ImageEditorActionBox.action now also accepts 'saved' (plus an optional newPath). A replacement image editor (e.g. the Jodit PRO one, which uploads the fully edited blob itself through the connector's imageSave action) can report "the file is already persisted" — the core then skips the server resize/crop request and only runs the success wiring (file browser refresh, in-content <img> swap via onSuccess(newPath)). Previously every save was forced through dataProvider.resize/crop, which produced a redundant request that could 404 ("Source not found") when the editor was opened from the Image properties dialog.

🐛 Bug Fix

  • Dialog: destructing a dialog from its own afterClose handler (a common pattern for one-shot dialogs, e.g. the finder preview lightbox) made close() throw TypeError: Need subject — after the handler ran, close() still fired joditCloseDialog on this.ow, which the destructor had already cleared. close() now skips that fire when the dialog is being destructed.

Don't miss a new jodit release

NewReleases is sending notifications on new releases.