github xdan/jodit 4.11.4

latest releases: 4.11.6, 4.11.5
6 hours ago

💥 Breaking Change

  • .jodit-icon transform-origin changed from 0 0 !important to var(--jd-icon-transform-origin) (default center), and the !important flag was removed. If your layout depends on the old top-left origin, restore it via CSS:
    :root {
        --jd-icon-transform-origin: 0 0 !important;
    }

🚀 New Feature

  • IUIIconState now supports scale property — when set, applies transform: scale(...) to the SVG icon element, overriding the CSS variable

  • IControlType.icon now accepts string | IUIIconState — allows setting icon name, fill, iconURL, and scale directly from toolbar button config

    Per-button scale example:

    Jodit.make('#editor', {
        buttons: Jodit.atom([
            'bold',
            {
                name: 'big-italic',
                icon: { name: 'italic', fill: '', iconURL: '', scale: 1.5 },
                tooltip: 'Italic (large icon)'
            },
            'underline'
        ])
    });
  • CSS custom properties --jd-icon-transform-origin and --jd-icon-transform-scale for global icon scaling. Override them to resize all editor icons at once. Per-button scale in IUIIconState takes priority over the CSS variable.

    Global scale override via CSS:

    :root {
        --jd-icon-transform-scale: 1.3;
        --jd-icon-transform-origin: center;
    }

Don't miss a new jodit release

NewReleases is sending notifications on new releases.