ace-editor-web-component
Installation
SKILL.md
<ace-editor> web component
A custom element that wraps Ace Editor. It loads Ace asynchronously (once per page, no matter how many editors are rendered), auto-sizes to its content, wraps long lines, takes part in forms, and exposes a small textarea-like API.
- Full documentation and live demos: https://stopsopa.github.io/ace-editor-webcomponent/learning/008_ace_async_loader/dynamic.html
- Source of the component (single file): https://stopsopa.github.io/ace-editor-webcomponent/ace-web-component.js
1. Installation (CDN, one script tag)
Add this once per page, preferably in <head>:
<script
type="module"
src="https://stopsopa.github.io/ace-editor-webcomponent/ace-web-component.js"
data-main-ace="https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.min.js"
></script>