Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@draft-js-plugins/resizeable
Advanced tools
This is a plugin for the draft-js-plugins-editor
.
Usage:
import createResizeablePlugin from '@draft-js-plugins/resizeable';
const resizePlugin = createResizeablePlugin({ isResizable: true });
This plugin does not require, but work better in combination with the draft-js-focus-plugin
.
You can pass optional parameter to createResizeablePlugin
;
Props | Type | Description | Required |
---|---|---|---|
horizontal | "auto" or "relative" or "absolute" | "relative" measures the width of image in percentages, while "absolute" measures in pixels | no |
vertical | "auto" or "relative" or "absolute" | same as horizontal, but for height | no |
initialWidth | string | initial width of image. If not passed, the default value is 40 (either % or px, depending on type of horizontal) unless horizontal is set to "auto". In case of "auto" is has no effect. You can pass any valid css value for property width. For example, "100px", "60%" or "auto" | no |
initialHeight | string | same as initialWidth, but for height | no |
import createResizeablePlugin from '@draft-js-plugins/resizeable';
const resizePlugin = createResizeablePlugin({
horizontal: 'absolute',
initialWidth: 'auto',
});
FAQs
Resizeable Plugin for DraftJS
The npm package @draft-js-plugins/resizeable receives a total of 4,121 weekly downloads. As such, @draft-js-plugins/resizeable popularity was classified as popular.
We found that @draft-js-plugins/resizeable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.