π Bug Fix
- Fullsize / global fullscreen: exiting fullsize scrolled the whole page back to the top. Entering global fullsize puts
<html>intoposition: fixed, which makes the browser reset the page scroll to0; that position was never restored on exit. The scroll offset is now saved when entering fullsize and restored withwindow.scrollTo()when leaving it. Fixes #1255. - Scroll into view / Search:
inView(used byscrollIntoViewIfNeeded) only checked that an element wasn't below the viewport bottom, not that it wasn't above the top. An element scrolled above the visible area was therefore reported as visible, so navigating to it never scrolled β most visibly, cycling through search results and wrapping around to a match near the top of the page did not scroll up to it.inViewnow also requires the element's bottom to be at or below the viewport top. Fixes #1279.
π New Feature
-
Link dialog /
link.deriveUrlFromText: new opt-in option (defaultfalse). When the link dialog is opened for a new link with an empty URL field, the URL is pre-filled from the selected text when it looks like a URL or email β a bare domain getshttps://(example.comβhttps://example.com), an email getsmailto:, an already-schemed URL is kept as is, and plain text is left untouched. Requested in #1248 / #1323. -
CSP
noncesupport: added anonceoption that is applied to every<style>,<script>and<link>element Jodit injects at runtime (plugin styles, CDN scripts for ACE/beautify, downloaded stylesheets). Setting it to the nonce from yourContent-Security-Policyheader lets the editor run under a strictstyle-src/script-srcpolicy without'unsafe-inline'. Requested in #1276.Jodit.make('#editor', { nonce: 'r4nd0m' });
π Documentation
- Getting started / CDN: bumped the pinned Jodit version in the cdnjs/unpkg snippets in
README.mdanddocs/getting-started.mdfrom the stale4.7.6to4.12.37. Refs #1208.
π Internal
- Enter tests: added a regression test asserting that pressing Enter with the caret at the bottom of a scrollable editing area scrolls to follow the cursor (and does not scroll when the caret line is already visible). Covers the scenario from #1300, which works on the current version.