
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
ckeditor5-omi
Advanced tools
Official Omi component for CKEditor 5 – the best browser-based rich text editor.
CKEditor 5 rich text editor component for Omi.
> npm i --g omi-cli
> omi init myapp
> npm i --save @ckeditor/ckeditor5-build-classic
> npm i --save ckeditor5-omi
> npm run start
import 'babel-polyfill'
import { define, WeElement } from 'omi'
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
import 'ckeditor5-omi'
define('myapp-element', class extends WeElement {
render() {
return (
<ckeditor-element
editor={ ClassicEditor }
data="<p>Hello from CKEditor 5!</p>"
onInit={ editor => {
// You can store the "editor" and use when it is needed.
console.log( 'Editor is ready to use!', editor );
} }
onChange={ ( event, editor ) => {
const data = editor.getData();
console.log( { event, editor, data } );
} }
onBlur={ editor => {
console.log( 'Blur.', editor );
} }
onFocus={ editor => {
console.log( 'Focus.', editor );
} }
/>
)
}
})
> npm install
> npm run test -- [additional options]
# or
> npm t -- [additional options]
The command accepts the following options:
--coverage
(-c
) – Whether to generate the code coverage.--source-map
(-s
) – Whether to attach the source maps.--watch
(-w
) – Whether to watch test files.--reporter
(-r
) – Reporter for Karma (default: mocha
, can be changed to dots
).--browsers
(-b
) – Browsers that will be used to run tests (default: Chrome
, available: Firefox
, BrowserStack_Edge
and BrowserStack_Safari
).Note: If you would like to use the BrowserStack_*
browser, you need to specify the BROWSER_STACK_USERNAME
and BROWSER_STACK_ACCESS_KEY
as
an environment variable, e.g.:
> BROWSER_STACK_USERNAME=[...] BROWSER_STACK_ACCESS_KEY=[...] npm t -- -b BrowserStack_Edge,BrowserStack_Safari -c
If you are going to change the source (src/ckeditor.js
) file, remember about rebuilding the package. You can use npm run develop
in order to do it automatically.
Build a minified version of the package that is ready to publish:
> npm run build
Please check the LICENSE.md file.
FAQs
Official Omi component for CKEditor 5 – the best browser-based rich text editor.
The npm package ckeditor5-omi receives a total of 2 weekly downloads. As such, ckeditor5-omi popularity was classified as not popular.
We found that ckeditor5-omi 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.