https://github.com/empiricompany/openmage-mm_monacoeditor
OpenMage / Magento 1.9 module extension that integrate Monaco Editor with Emmet and Tailwindcss Intellisense in CMS Static Blocks / Pages.
https://github.com/empiricompany/openmage-mm_monacoeditor
emmet magento1 monaco-editor openmage tailwindcss
Last synced: about 2 months ago
JSON representation
OpenMage / Magento 1.9 module extension that integrate Monaco Editor with Emmet and Tailwindcss Intellisense in CMS Static Blocks / Pages.
- Host: GitHub
- URL: https://github.com/empiricompany/openmage-mm_monacoeditor
- Owner: empiricompany
- License: gpl-3.0
- Created: 2023-11-18T10:47:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T10:28:09.000Z (about 2 months ago)
- Last Synced: 2025-04-01T11:29:54.692Z (about 2 months ago)
- Topics: emmet, magento1, monaco-editor, openmage, tailwindcss
- Language: HTML
- Homepage:
- Size: 1.75 MB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-openmage - Monaco Editor
README
## Requirements
- [OpenMage](https://github.com/OpenMage/magento-lts) / Magento 1.9.x
- PHP 7.4 / 8.x## Description
[Monaco Editor](https://github.com/microsoft/monaco-editor) is a highly advanced and versatile code editor from Microsoft used in the popular code editor [VSCode](https://github.com/microsoft/vscode).
This extension allows you to use [Monaco](https://github.com/microsoft/monaco-editor) for editing CMS content and Design Update XML instead of textareas while maintaining indentation, as well as benefiting from all the useful features.
Additionally, you can disable the TinyMCE WYSIWYG editor for specific static blocks and pages. This option has been added because TinyMCE removes code that does not conform to the HTML5 schema, such as Alpine.js.
> This is a side project of [CMSContentFileMode](https://github.com/magemega/openmage-mm_cmscontentfilemode) that integrates the Tailwind CSS compiler for CMS Content in OpenMage. Check it out!
## Monaco Features
- Smart IntelliSense
- Syntax Highlighting
- Code Formatting / Folding
- Multiple Cursors and Selections
- and much more## Additional Features
- Emmet a fast and efficient toolkit for HTML and CSS coding, providing shorthand abbreviations for quick code expansion.
- Tailwindcss Intellisense providing intelligent auto-completion, suggestions, and tooltips for Tailwind CSS classes## Configuration
Monaco Editor is enabled by default in all supported content.**System -> Content Management -> Monaco Editor Options**
- Enable/disabled Monaco Editor [enabled]
- Enable/disabled Tailwindcss Intellisense [enabled]
- Configure Tailwindcss Prefix [disabled]
- Set Custom Tailwindcss Prefix ['tw-']
- Disable WYSYWYG Editor for specific Static Blocks and Pages## Known issues:
- The TinyMCE content is not synchronized back on Monaco.
- There is a problem with prototypejs that inserts the Array.prototype.include method and conflicts with Monaco. It should have been resolved, although it may not be the best solution, but it works!
## DEMO

### Support
-------
If you have any issues with this extension, please open an issue on GitHub.### Contribution
------------
Any contributions are highly appreciated. The best way to contribute code is to open a
[pull request on GitHub](https://help.github.com/articles/using-pull-requests).### Licence
-------
[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)