
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
image-editor-canva
Advanced tools
A powerful and customizable image editor built with React and Fabric.js.
Version 1.3.0 is now available on npm! You can install it using:
npm install image-editor-canva@1.3.0
Or simply:
npm install image-editor-canva
npm install image-editor-canva
# or
yarn add image-editor-canva
import { Editor } from 'image-editor-canva';
import 'image-editor-canva/dist/styles.css'; // Import styles
function App() {
return (
<Editor
initialData={{
json: "",
name: "New Project",
id: '123',
userId: "anonymous",
height: 720,
width: 1280,
thumbnailUrl: null,
isTemplate: null,
isPro: null,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
}}
onClose={() => {
// Handle editor close
console.log('Editor closed');
}}
/>
);
}
| Prop | Type | Description |
|---|---|---|
initialData | Object | Initial editor data |
templates | Array | Optional array of templates |
templateImagePath | string | Path to template images |
onClose | Function | Callback when editor is closed |
interface EditorData {
json: string;
name: string;
id: string;
userId: string;
height: number;
width: number;
thumbnailUrl: string | null;
isTemplate: boolean | null;
isPro: boolean | null;
createdAt: string;
updatedAt: string;
}
Ctrl + Z / Cmd + Z: UndoCtrl + Y / Cmd + Y: RedoCtrl + C / Cmd + C: CopyCtrl + V / Cmd + V: PasteDelete: Delete selected objectCtrl + S / Cmd + S: Save# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Build optimized version
npm run build:slim
The package is now significantly smaller:
This is achieved through:
The editor now gracefully handles:
MIT
To ensure styles load properly and avoid styling delays:
Method 1: Import CSS in your HTML head (Recommended)
Add this to your HTML head tag:
<link rel="stylesheet" href="node_modules/image-editor-canva/dist/styles.css">
For bundlers that support it (webpack, Vite, etc.), you can also:
import 'image-editor-canva/dist/styles.css';
This is the preferred method to ensure styles load before components render.
Method 2: Import with plugin
You can still use the old method (not recommended for production):
import 'image-editor-canva/dist/index.js'; // This will include styles but may lead to style delay
FAQs
A Canva-like image editor plugin for React
The npm package image-editor-canva receives a total of 5 weekly downloads. As such, image-editor-canva popularity was classified as not popular.
We found that image-editor-canva demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.