Download the PHP package empiricompany/openmage-mm_monacoeditor without Composer
On this page you can find all versions of the php package empiricompany/openmage-mm_monacoeditor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download empiricompany/openmage-mm_monacoeditor
More information about empiricompany/openmage-mm_monacoeditor
Files in empiricompany/openmage-mm_monacoeditor
Package openmage-mm_monacoeditor
Short Description OpenMage / Magento 1.9 module extension that integrate Monaco Editor with Emmet and Tailwindcss Intellisense in CMS Static Blocks / Pages
License OSL-3.0
Homepage https://github.com/empiricompany/openmage-mm_monacoeditor
Informations about the package openmage-mm_monacoeditor
Requirements
- OpenMage / Magento 1.9.x
- PHP 7.4 / 8.x
Description
Monaco Editor is a highly advanced and versatile code editor from Microsoft used in the popular code editor VSCode.
This extension allows you to use Monaco 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 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.