Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
ember-content-editable-modifier
Advanced tools
An ember modifier that enables contenteditable fields
![Code Climate][codeclimate-badge]
This addons allows you to add contenteditable functionality to dom elements by providing an ember modifier.
If you need support for older ember versions, please check version 2.0.0-rc.0 or 1.0.5
ember install ember-content-editable
Just apply the content-editable
modifier and provide a value
attribute and a onChange
function in order to update the value. Ember does not allow for two way bindings, therefore you will need to take care of updating the value yourself.
<div {{content-editable value=this.myText onChange=(fn (mut this.myText))}}></div>
However, it is recommended to use a setter in order to update your variable. Additionally it is recommended to create an ember component around above statement in order to provide further customizations and features that you need for your app.
autofocus: If true, the element will be focused once inserted into the document
placeholder: Placeholder displayed when value is blank
Add the following css code to your app:
.ember-content-editable:empty:focus:before {
content: '';
}
Please send PRs. However, this addon aims to provide basic contenteditable functionality only, which can easily be extended by using custom components. Otherwise see the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
An ember modifier that enables contenteditable fields
The npm package ember-content-editable-modifier receives a total of 520 weekly downloads. As such, ember-content-editable-modifier popularity was classified as not popular.
We found that ember-content-editable-modifier demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.