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
Releases
latest 31-
1.0.3031 Jul 2026Release notes
Open source →Fixed
- Broaden the component instantiation
catchtoThrowableto fix an issue with Craft Teams (#20)
Release notes
Open source →Fixed
- Broaden the component instantiation
catchtoThrowableto fix an issue with Craft Teams (#20)
- Broaden the component instantiation
-
1.0.2930 Jan 2026Release notes
Open source →Fixed
- Roll the version of
monaco-editorback down to^0.54.0to address a seeming regression in0.55.xthat makesmonaco.languages.jsoninaccessible (#18)
Release notes
Open source →Fixed
- Roll the version of
monaco-editorback down to^0.54.0to address a seeming regression in0.55.xthat makesmonaco.languages.jsoninaccessible (#18)
- Roll the version of
-
1.0.2817 Dec 2025Release notes
Open source →Fixed
- Bump the version of
monaco-editorto^0.55.1to actually fix the issue with DOMPurify 3.1.7 which is affected by CVE-2025-26791 (#17)
Release notes
Open source →Fixed
- Bump the version of
monaco-editorto^0.55.1to actually fix the issue with DOMPurify 3.1.7 which is affected by CVE-2025-26791 (#17)
- Bump the version of
-
1.0.2713 Dec 2025Release notes
Open source →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
Release notes
Open source →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
-
1.0.2628 Jul 2025Release notes
Open source →Fixed
- Make sure the Monaco editor respects the Underline links setting in Craft, so it keeps them underlined if the setting is on
Release notes
Open source →Fixed
- Make sure the Monaco editor respects the Underline links setting in Craft, so it keeps them underlined if the setting is on
-
1.0.2528 Jul 2025Release notes
Open source →Fixed
- Unless the class
underline-linkswas 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 theaccessibility.underlineLinkssetting via IEditorOptions (#16)
Release notes
Open source →Fixed
- Unless the class
underline-linkswas 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 theaccessibility.underlineLinkssetting via IEditorOptions (#16)
- Unless the class
-
1.0.2422 Jul 2025Release notes
Open source →Release notes
Open source → -
1.0.2317 May 2025Release notes
Open source →Fixed
- Dispose of editor models that already exist when making editor (#13)
Release notes
Open source →Fixed
- Dispose of editor models that already exist when making editor (#13)
-
1.0.2223 Sep 2024 -
1.0.2113 Sep 2024Release notes
Open source →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
Release notes
Open source →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
- Update to
-
1.0.2022 Aug 2024Release notes
Open source →Fixed
- Fixed an issue where the autocomplete endpoint could throw a
500error when attempting to parse properties such as thessoproperty with an insufficient edition of Craft
- Fixed an issue where the autocomplete endpoint could throw a
-
1.0.1915 Apr 2024 -
1.0.1819 Mar 2024 -
1.0.1730 Jan 2024Release notes
Open source →Added
- Compatibility with Craft CMS 5
- Add
phpstanandecscode linting - Add
code-analysis.yamlGitHub action
Changed
- PHPstan code cleanup
- ECS code cleanup
Fixed
- Use
getSections()for Craft 3 & 4, and usegetEntries()for Craft 5
-
1.0.1608 Dec 2023Release notes
Open source →Changed
- Update to
"monaco-editor": "^0.44.0"
Fixed
- Fixed an issue where the global
monacoAPI object was no longer set properly by theglobalAPI: trueconfig setting, so we now manually set it on thewindowvariable
- Update to
-
1.0.1530 Nov 2023Release notes
Open source →Fixed
- Fixed a regression that would cause the content height to be set to
50pxby default, when it should be growing to fix the available content
- Fixed a regression that would cause the content height to be set to
-
1.0.1425 Nov 2023Release notes
Open source →Added
- Added a
maxEditorRowssetting toCodeEditorOptionsto 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
- Added a
-
1.0.1316 Aug 2023Release notes
Open source →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
-
1.0.1214 Aug 2023Release notes
Open source →Added
- Check to see if any models exist before creating them, to allow for multiple instantiation of the same URI
- Add
fixedHeightEditorsetting toCodeEditorOptionsto allow for a scrolling editor in a fixed height frame inherited from the parent container
-
1.0.1106 Aug 2023Release notes
Open source →Added
- Add a
CodeEditorOptions.fileNameso that the name of the file to be edited can be passed down, and used for themodelUriso Monaco can auto-detect the correct editor to use based on the file extension
- Add a
-
1.0.1019 Jun 2023Release notes
Open source →Changed
- The default
lineNumbersMinCharsoption value is no longer set to0.
- The default
-
1.0.917 Apr 2023 -
1.0.813 Apr 2023 -
1.0.716 Dec 2022Release notes
Open source →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
-
1.0.606 Dec 2022Release notes
Open source →Fixed
- Remove reference to
Craft.so the JavaScript will work on the frontend
- Remove reference to
-
1.0.530 Nov 2022Release notes
Open source →Changed
- Set the default theme before the editor is instantiated, as an optimization
-
1.0.429 Nov 2022Release notes
Open source →Changed
- Switched to doing tab handling for single line editors via
TabFocusrather than our own custom tab handler (ref) - Change the opacity of the placeholder text to make it lighter in appearance
- Switched to doing tab handling for single line editors via
-
1.0.317 Nov 2022Release notes
Open source →Added
- Added an
allowTemplateAccesssetting toconfig.phpto separate frontend template access from frontend autocomplete controller access
Changed
- Use
--focus-ringCraft CMS CSS variable for a11y styles
- Added an
-
1.0.204 Nov 2022Release notes
Open source →Added
- Added support for
monacoOptions.themeset toautoautomatically setting the theme to match the browser's dark mode setting
- Added support for
-
1.0.102 Nov 2022Release notes
Open source →Added
- Added a JSON icon
Changed
- Added a default fallback icon if no custom icon is available
-
1.0.001 Nov 2022