
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
> A magnific javascript editor! Easy to create and valitade fields and get data from them, even better is that you don't need to handle contenteditable yourself :8ball:
A magnific javascript editor! Easy to create and valitade fields and get data from them, even better is that you don't need to handle contenteditable yourself :8ball:
Available on npm and bower:
npm install editore
, bower install editore
or directly download
Load editore.js into your application, create the editor wrapper element, set some fields and instantiate a new Editore.
<!-- Create editor wrapper element and some fields: -->
<div id="editor">
<h1 data-field="title" data-placeholder="Title" data-require="true" data-length="60">Example title</h1>
<h3>Article</h3>
<article data-field="articleBody" data-placeholder="Write here..." data-type="rich" data-require="true">
<p>Lorem lorem lorem!</p>
</article>
</div>
// Instantiate a new Editore passing fields wrapper element:
var editore = new Editore(document.getElementById('editor'));
//Get values from fields:
var values = editore.values();
/*
values = {
title: {
name: 'title',
length: 13,
value: 'Example title',
valid: false
},
articleBody: {
name: 'articleBody',
length: 18,
value: '<p>Lorem lorem lorem!</p>',
valid: true
}
}
*/
new Editor(element);
<h1 data-field="title" data-placeholder="Title" data-require="true" data-length="60">
Lorem title!
</h1>
editore.values();
/*
return {
fieldName: {
name: String,
length: Number,
value: String,
valid: Boolean
}
}
*/
editore.clearFields();
/*
return {
fieldName: {
element: DOMElement,
maxLength: Number,
name: String,
placeholder: String,
required: Boolean,
type: String
}
}
*/
editore.clearFields();
editore.setFieldsValues({
fieldName: 'Value',
richFieldName: '<p>Value</p>'
});
editore.destroy();
editore.subscribeInput(function(currentField) {
console.log('Current: ', currentField);
});
editore.triggerInput();
editore.hideComponents();
editore.registerEditionPlugin(EditionPlugin, pluginOptions);
editore.registerInsertionPlugin(InsertionPlugin, pluginOptions);
Pretty soon we'll have more :pray:
function Plugin() {
this.name = 'PluginName';
this.button = document.createElement('button');
this.button.innerText = 'Edition';
// if is a edition component
this.tag = 'i'
// show component objects
console.log(this.component)
}
Plugin.prototype = {
action: function(currentSelectionField, clickEvent) {
e.preventDefault();
// do what you have to do
// trigger editor input
this.triggerInput();
},
destroy: function() {
// destroy the plugin
}
};
Everyone can contribute! Finding bugs, creating issues, improving documentation, improving editor it self or creating components. Every contribution will be welcomed! :santa:
Fork it -> Branch it -> Test it -> Push it -> Pull Request it :gem:
Currently development is being maintained by Núcleo Digital Grupo RBS.
FAQs
> A magnific javascript editor! Easy to create and valitade fields and get data from them, even better is that you don't need to handle contenteditable yourself :8ball:
The npm package editore receives a total of 0 weekly downloads. As such, editore popularity was classified as not popular.
We found that editore 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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.