PackageTrack
Sign in Get early access

nystudio107/craft-code-editor

Provides a code editor field with Twig & Craft API autocomplete

1.0.30 1.5M downloads/mo #2703 most downloaded on Packagist nystudio107/craft-code-editor

What this package is like to depend on

Last release 24 days ago

31 Jul 2026

Release timing varies

gaps range from 1 weeks to 8 months

Nearly every release is documented

notes for 31 of 31 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

31 releases · first in 2022

4 releases in the last 12 months

see the full history below

Release timeline

31 releases · Nov 2022 to Jul 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 31
  1. 1.0.30 31 Jul 2026
    Release notes

    Fixed

    • Broaden the component instantiation catch to Throwable to fix an issue with Craft Teams (#20)
    Open source →
    Release notes

    Fixed

    • Broaden the component instantiation catch to Throwable to fix an issue with Craft Teams (#20)
    Open source →
  2. 1.0.29 30 Jan 2026
    Release notes

    Fixed

    • Roll the version of monaco-editor back down to ^0.54.0 to address a seeming regression in 0.55.x that makes monaco.languages.json inaccessible (#18)
    Open source →
    Release notes

    Fixed

    • Roll the version of monaco-editor back down to ^0.54.0 to address a seeming regression in 0.55.x that makes monaco.languages.json inaccessible (#18)
    Open source →
  3. 1.0.28 17 Dec 2025
    Release notes

    Fixed

    • Bump the version of monaco-editor to ^0.55.1 to actually fix the issue with DOMPurify 3.1.7 which is affected by CVE-2025-26791 (#17)
    Open source →
    Release notes

    Fixed

    • Bump the version of monaco-editor to ^0.55.1 to actually fix the issue with DOMPurify 3.1.7 which is affected by CVE-2025-26791 (#17)
    Open source →
  4. 1.0.27 13 Dec 2025
    Release notes

    Fixed

    • Resolved an issue where the bundle used DOMPurify 3.1.7 which is affected by CVE-2025-26791 (#17)

    Changed

    • Update to use Node 22 & modernize the buildchain
    Open source →
    Release notes

    Fixed

    • Resolved an issue where the bundle used DOMPurify 3.1.7 which is affected by CVE-2025-26791 (#17)

    Changed

    • Update to use Node 22 & modernize the buildchain
    Open source →
  5. 1.0.26 28 Jul 2025
    Release notes

    Fixed

    • Make sure the Monaco editor respects the Underline links setting in Craft, so it keeps them underlined if the setting is on
    Open source →
    Release notes

    Fixed

    • Make sure the Monaco editor respects the Underline links setting in Craft, so it keeps them underlined if the setting is on
    Open source →
  6. 1.0.25 28 Jul 2025
    Release notes

    Fixed

    • Unless the class underline-links was already in the <body> tag, remove it because the Monaco editor added it during initialization, and there doesn't appear to be a way to configure the accessibility.underlineLinks setting via IEditorOptions (#16)
    Open source →
    Release notes

    Fixed

    • Unless the class underline-links was already in the <body> tag, remove it because the Monaco editor added it during initialization, and there doesn't appear to be a way to configure the accessibility.underlineLinks setting via IEditorOptions (#16)
    Open source →
  7. 1.0.24 22 Jul 2025
    Release notes

    Fixed

    • Update monaco-editor to address DOMPurify 3.0.5 vulnerabilities (#14) via (#15)
    Open source →
    Release notes

    Fixed

    • Update monaco-editor to address DOMPurify 3.0.5 vulnerabilities (#14) via (#15)
    Open source →
  8. 1.0.23 17 May 2025
    Release notes

    Fixed

    • Dispose of editor models that already exist when making editor (#13)
    Open source →
    Release notes

    Fixed

    • Dispose of editor models that already exist when making editor (#13)
    Open source →
  9. 1.0.22 23 Sep 2024
    Release notes

    Fixed

    • Handle PHP >= 8.1 enums properly
    Open source →
    Release notes

    Fixed

    • Handle PHP >= 8.1 enums properly
    Open source →
  10. 1.0.21 13 Sep 2024
    Release notes

    Changed

    • Update to "monaco-editor": "^0.50.0"

    Fixed

    • Removes errors when editing CSS code that contains native CSS nesting or :has() selectors monaco-editor #4071
    Open source →
    Release notes

    Changed

    • Update to "monaco-editor": "^0.50.0"

    Fixed

    • Removes errors when editing CSS code that contains native CSS nesting or :has() selectors monaco-editor #4071
    Open source →
  11. 1.0.20 22 Aug 2024
    Release notes

    Fixed

    • Fixed an issue where the autocomplete endpoint could throw a 500 error when attempting to parse properties such as the sso property with an insufficient edition of Craft
    Open source →
  12. 1.0.19 15 Apr 2024
    Release notes

    Added

    • Stable release for Craft CMS 5
    Open source →
  13. 1.0.18 19 Mar 2024
    Release notes

    Fixed

    • Fixed an issue that would cause the SectionShorthandFieldsAutocomplete to throw an exception if you were running PHP < 8.0 (#7)
    • Prefix the generated Tailwind CSS (which ironically, we're not using anyway) with craft-code-editor- to avoid namespace collisions (#8)
    Open source →
  14. 1.0.17 30 Jan 2024
    Release notes

    Added

    • Compatibility with Craft CMS 5
    • Add phpstan and ecs code linting
    • Add code-analysis.yaml GitHub action

    Changed

    • PHPstan code cleanup
    • ECS code cleanup

    Fixed

    • Use getSections() for Craft 3 & 4, and use getEntries() for Craft 5
    Open source →
  15. 1.0.16 08 Dec 2023
    Release notes

    Changed

    • Update to "monaco-editor": "^0.44.0"

    Fixed

    • Fixed an issue where the global monaco API object was no longer set properly by the globalAPI: true config setting, so we now manually set it on the window variable
    Open source →
  16. 1.0.15 30 Nov 2023
    Release notes

    Fixed

    • Fixed a regression that would cause the content height to be set to 50px by default, when it should be growing to fix the available content
    Open source →
  17. 1.0.14 25 Nov 2023
    Release notes

    Added

    • Added a maxEditorRows setting to CodeEditorOptions to allow you to control the maximum number of rows before the editor is fixed height, and has a scrollbar
    • Update for Craft CMS ^5.0.0-alpha.1
    Open source →
  18. 1.0.13 16 Aug 2023
    Release notes

    Added

    • Revert checking to see if any models exist before creating them, to allow for multiple instantiation of the same URI... because as implemented, it doesn't allow multiple instances of the editor on the same page
    Open source →
  19. 1.0.12 14 Aug 2023
    Release notes

    Added

    • Check to see if any models exist before creating them, to allow for multiple instantiation of the same URI
    • Add fixedHeightEditor setting to CodeEditorOptions to allow for a scrolling editor in a fixed height frame inherited from the parent container
    Open source →
  20. 1.0.11 06 Aug 2023
    Release notes

    Added

    • Add a CodeEditorOptions.fileName so that the name of the file to be edited can be passed down, and used for the modelUri so Monaco can auto-detect the correct editor to use based on the file extension
    Open source →
  21. 1.0.10 19 Jun 2023
    Release notes

    Changed

    • The default lineNumbersMinChars option value is no longer set to 0.
    Open source →
  22. 1.0.9 17 Apr 2023
    Release notes

    Changed

    • Updated assets build with the latest deps
    Open source →
  23. 1.0.8 13 Apr 2023
    Release notes

    Changed

    • Add a unique modelUri to each editor model
    Open source →
  24. 1.0.7 16 Dec 2022
    Release notes

    Changed

    • Allow scrollbars for text editors instances that are not single line editors
    • Set the minimum editor size to the textarea's rows, so you have control over the minimum height of the editor
    • Set the maximum number of rows in the editor to 50, after which scrollbars appear
    Open source →
  25. 1.0.6 06 Dec 2022
    Release notes

    Fixed

    • Remove reference to Craft. so the JavaScript will work on the frontend
    Open source →
  26. 1.0.5 30 Nov 2022
    Release notes

    Changed

    • Set the default theme before the editor is instantiated, as an optimization
    Open source →
  27. 1.0.4 29 Nov 2022
    Release notes

    Changed

    • Switched to doing tab handling for single line editors via TabFocus rather than our own custom tab handler (ref)
    • Change the opacity of the placeholder text to make it lighter in appearance
    Open source →
  28. 1.0.3 17 Nov 2022
    Release notes

    Added

    • Added an allowTemplateAccess setting to config.php to separate frontend template access from frontend autocomplete controller access

    Changed

    • Use --focus-ring Craft CMS CSS variable for a11y styles
    Open source →
  29. 1.0.2 04 Nov 2022
    Release notes

    Added

    • Added support for monacoOptions.theme set to auto automatically setting the theme to match the browser's dark mode setting
    Open source →
  30. 1.0.1 02 Nov 2022
    Release notes

    Added

    • Added a JSON icon

    Changed

    • Added a default fallback icon if no custom icon is available
    Open source →
  31. 1.0.0 01 Nov 2022
    Release notes

    Added

    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive