承接 empiricompany/openmage-mm_monacoeditor 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

empiricompany/openmage-mm_monacoeditor

最新稳定版本:v1.0.1

Composer 安装命令:

composer require empiricompany/openmage-mm_monacoeditor

包简介

OpenMage / Magento 1.9 module extension that integrate Monaco Editor with Emmet and Tailwindcss Intellisense in CMS Static Blocks / Pages

README 文档

README

  • 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

demo-monacoeditor configs

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.

Licence

OSL - Open Software Licence 3.0

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 4
  • Forks: 2
  • 开发语言: HTML

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2024-04-24