
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
ember-cli-markdown-editor
Advanced tools
Markdown enhanced textarea with native browser spellchecking
markdown-editor is a markdown enhanced textarea with native browser spellchecking
Features:
npm install bootstrap
Or your favorite Bootstrap 5 addonember install ember-cli-markdown-editor
This addonFirst make sure your route file app/routes/application.js sets the default language for the intl service:
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default class ApplicationRoute extends Route {
@service intl;
async beforeModel() {
super.init(...arguments);
return this.intl.setLocale(['en-us']);
}
}
Add the markdown-editor to your templates like you would normaly do with a textarea but passing a param function to update the value, like in the examples.
Minimal
<MarkdownEditor @value={{this.myValue}} @onChange={{fn (mut this.myValue)}} />
Common
<MarkdownEditor
@rows="8"
@placeholder="Post content"
@value={{this.myValue}}
@onChange={{fn (mut this.myValue)}}
/>
Compact mode
<MarkdownEditor
@rows="8"
@placeholder="Post content"
@value={{this.myValue}}
@onChange={{fn (mut this.myValue)}}
@compact={{true}}
/>
All Buttons
<MarkdownEditor
@rows="8"
@placeholder="Post content"
@btns="heading,bold,italic,quote,link,image,table,hr,list-ol,list-ul,undo,help"
@value={{this.myValue}}
@onChange={{fn (mut this.myValue)}}
/>
Some Buttons
<MarkdownEditor
@rows="8"
@placeholder="Post content"
@btns="bold,italic,list-ol,list-ul"
@value={{this.myValue}}
@onChange={{fn (mut this.myValue)}}
/>
If you include in your project root a folder called translations
you can add transition files like this per locale:
translations/nl-nl.yaml
markdown-editor:
modal:
selectionText: 'Maak eerst een selectie'
confirm: 'Bevestigen'
cancel: 'Annuleren'
formats:
heading:
tooltip: 'Hoofdstuk toevoegen'
bold:
tooltip: 'Maak de selectie vet'
italic:
tooltip: 'Maak de selectie schuingedrukt'
quote:
tooltip: 'Voeg geciteerde tekst toe'
link:
tooltip: 'Maak een link van de selectie'
prompt: 'Vul het linkadres in. Inclusief http://'
image:
tooltip: 'Voeg een plaatje toe'
prompt: 'Voer het afbeeldingadres in. Inclusief http://'
table:
tooltip: 'Tabel toevoegen'
hr:
tooltip: 'Horizontale lijn'
list-ol:
tooltip: 'Voeg genummerde lijst toe'
list-ul:
tooltip: 'Add Bulletted List'
undo:
tooltip: 'Ongedaan maken'
help:
tooltip: 'Wat is Markdown?'
href: 'https://guides.github.com/features/mastering-markdown/'
ember serve
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
This project was originally based on the ember-bootstrap-markdown by @ChrisHonniball, and I really like his code.
And of course thanks to all our wonderful contributors, here.
FAQs
Markdown enhanced textarea with native browser spellchecking
The npm package ember-cli-markdown-editor receives a total of 29 weekly downloads. As such, ember-cli-markdown-editor popularity was classified as not popular.
We found that ember-cli-markdown-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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.