
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
atlassian-editorkit
Advanced tools
Provides basic tooling an infrastructure for developing or creating new EditorKit components
Providing the basic tooling and structure to create new EditorKit components.
EditorKit does this by exposing a set of tasks to aid the development.
Install EditorKit as a dev dependency of your project:
npm install atlassian-editorkit --save-dev
./node_modules/.bin/editorkit --$CMD
Modify the scripts
section of your package.json
example of a modified package.json
:
{
...
scripts: {
...
'sandbox': 'editorkit --sandbox',
'build': 'editorkit --build',
'compile': 'editorkit --compile',
'typings': 'editorkit --typings',
'lint': 'editorkit --lint',
'test': 'editorkit --test',
'dev': 'editorkit --dev'
}
}
Then execute your tasks:
npm run sandbox
EditorKit components should have their entry points defined on src/index.js
.
And they should export a class in the following form:
example src/index/js
:
class MyPlugin {
constructor(EditorKITInstance) {
// initialize your plugin here
...
}
detach(EditorKITInstance) {
// called to allow your plugin to do cleanups
...
}
}
module.exports = MyPlugin;
Sometimes you may want to overwrite default prosemirror settings such as schema to do so you can supply a static 'configure()' method on your Plugin, and output of it will be used as the initialization settings for prosemirror.
this will be called prior to prosemirror being initialized and the output of configure should be a configuration object to be used to instantiate prosemirror.
example:
class MyPlugin {
...
}
MyPlugin.configure = function(settings) {
...
settings.foo = bar;
return settings;
};
module.exports = MyPlugin;
FAQs
Provides basic tooling an infrastructure for developing or creating new EditorKit components
We found that atlassian-editorkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.