Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
ember-wysihtml
Advanced tools
This a simple ember component that wraps Wysihtml.js library. A working demo can be found at here.
Simply run ember install ember-wysihtml
at your ember project root folder.
Or npm install ember-wysihtml --save && ember g ember-wysihtml
.
On a template:
{{wysi-editor
content=someContent
toolbar=myToolbar
pasteHTML=true
placeholder="This is a nice placeholder"
}}
On a controller/component:
myToolbar: [
{ command: 'bold', title: 'Ctrl+B', iconClass: 'fa fa-bold', iconAlt:'Bold'},
{ command: 'italic', title: 'Ctrl+I', iconClass: 'fa fa-italic', iconAlt:'Italic' },
{ command: 'underline', title: 'Ctrl+U', iconClass: 'fa fa-underline', iconAlt:'Underline' }
]
{{wysi-editor
content=someContent
toolbar=myToolbar
customToolbarClasses="my-custom-toolbar",
toolbarCustomBtnClass="wysi-btn"
pasteHTML=false
placeholder="Some nice place holder"
...
}}
A toolbar is an Array
of objects defined like this:
myToolbar: [
...
{
command: 'someValidCommand', // data-wysihtml5-command
commandValue: someValue // data-wysihtml5-command-value
commandValueBlank: true // data-wysihtml5-command-blank-value (boolean)
action: 'someValidAction', // data-wysihtml5-action
title: 'A title',
iconClass: 'my-icon-class',
iconAlt:'Alt if iconClass not used'
},
...
]
Check valid command and actions at http://wysihtml.com/examples
git clone
this repositorynpm install
bower install
ember server
npm test
(Runs ember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
FAQs
A component that wraps the Wysihtml library (http://wysihtml.com/)
The npm package ember-wysihtml receives a total of 8 weekly downloads. As such, ember-wysihtml popularity was classified as not popular.
We found that ember-wysihtml 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.