
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.
shadeditor
Advanced tools
A ready to use text editor build for svelte with tiptap and shadcn ui.
Creating a tiptap editor from scratch is a pain. This package provides a ready-to-use editor with all the features you need. You can install the package in your project but it will not give you flexibility. The recommended way is to use cli which installs all the dependencies for you and pastes the shadeditor component in your project.
Since, this project uses shadcn ui, you need to install shadcn in your svelte project. The editor uses tailwind typography plugin which is not included in shadcn. So, you need to install it manually.
For installation of shadcn, please follow thier official installation guide.
The editor usages tooltip, dropdown menu, button, separator, input, etc. Add them in your svelte project.
# using npm
npx shadcn-svelte@next add dropdown-menu button tooltip input popover separator
# using pnpm
pnpm dlx shadcn-svelte@next add dropdown-menu button tooltip input popover separator
For installation of tailwind typography, please follow thier official installation guide.
Add lucide icons in your svelte project.
# using npm
npm install lucide-svelte
# using pnpm
pnpm install lucide-svelte
Mode watcher is used to detect the mode of the editor. Add it in your svelte project.
# using npm
npm install mode-watcher
# using pnpm
pnpm install mode-watcher
Recommended way is to use cli which installs all the dependencies for you and pastes the shadeditor component in your project. This method gives you full independence and flexibility. You can further customize the editor as per your need.
# using npm
npx shadeditor init
# using pnpm
pnpm dlx shadeditor init
<script lang="ts">
import { browser } from '$app/environment';
import ShadEditor from '$lib/components/shad-editor/shad-editor.svelte';
import { writable } from 'svelte/store';
let localStorageContent = '';
if (browser) {
localStorageContent = localStorage.getItem('content') || '';
}
const content = writable(localStorageContent);
content.subscribe((value) => {
console.log('Content Changed');
if (!browser) return;
localStorage.setItem('content', value);
});
</script>
<main class="my-10 flex h-full w-full flex-col items-center justify-center">
<ShadEditor class="h-[40rem]" content={$content} />
</main>
This project had many inspirations and was built with the help of the following projects.
FAQs
Text editor build for svelte with tiptap and shadcn
The npm package shadeditor receives a total of 0 weekly downloads. As such, shadeditor popularity was classified as not popular.
We found that shadeditor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
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.