Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
knockout-froala
Advanced tools
Knockout.js binding for Froala WYSIWYG HTML Rich Text Editor ( Version 2 )
using Bower
bower install knockout-froala
using npm
npm install knockout-froala
to enable Froala binding on a textarea, you need to provide the following binding handlers
froala
: the model observable behind the editorfroalaOptions
: a plain object or an observable that will hold all the options to initalize the editorfroalaInstance
: [ optional ] if provided, froala instance will be stored in this observable once initialized ( should be observable )var viewModel = {
comments: ko.observable(),
options: {
// disable wrapping content with paragraphs
// instead <br> will be used
enter: $.FroalaEditor.ENTER_DIV,
// we like gray!
theme: 'gray',
toolbarButtons: [ 'bold', 'italic', 'underline' ]
}
}
ko.applyBindings( viewModel );
Using a <textarea>
<textarea data-bind="value: comments, froala: comments, froalaOptions: editorOptions"></textarea>
or a <div>
<div data-bind="froala: comments, froalaOptions: editorOptions"></div>
The knockout-froala
project is under MIT license.
Froala Editor has 3 different licenses for commercial use. For details please see License Agreement.
FAQs
Knockout.js binding for Froala WYSIWYG HTML Rich Text Editor
The npm package knockout-froala receives a total of 57 weekly downloads. As such, knockout-froala popularity was classified as not popular.
We found that knockout-froala demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.