
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@gelight/sml-editor
Advanced tools
Provides a simple web component for sml editing in browser.
For using SML as runtime build in your browser you can use the latest version with:
<script src="https://unpkg.com/@gelight/sml-editor"></script>
or
<script src="https://cdn.jsdelivr.net/npm/@gelight/sml-editor"></script>
Using the component in your template
<sml-editor auto-resize class="editor"></sml-editor>
| Attributes | Description |
|---|---|
| auto-resize | Defines whether the component height should be auto sized |
| class | The class attribute specifies one or more CSS classnames for the component. |
<script type="text/javascript">
let editor = document.querySelector('sml-editor');
editor.addEventListener('change', (e) => {
console.log(e.detail);
});
</script>
--sml-editor-tab-size: 2;
--sml-editor-color: #8e9fcd;
--sml-editor-bg: linear-gradient(161deg, #333a47 0%, #1c1d24 100%);
--sml-editor-border: 2px solid #4f5b70;
--sml-editor-padding: .8rem;
--sml-editor-max-height: auto;
--sml-editor-height: auto;
--sml-editor-box-shadow: 0 0 .8rem .8rem rgba(0,0,0,0.75);
--sml-editor-text-shadow: 0px 4px 4px rgba(0,0,0,0.85);
--sml-editor-font-family: monospace;
--sml-editor-font-size: 14px;
--sml-editor-line-height: 1.4rem;
--sml-editor-font-weight: 400;
--sml-editor-font-style: initial;
--sml-editor-font-stretch: initial;
--sml-editor-letter-spacing: .1rem;
--sml-editor-text-transform: initial;
FAQs
Web component for a simple SML editor
We found that @gelight/sml-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.