Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/EMPTYVOID-DEV/Altron

Rich text editor as a svelte component
https://github.com/EMPTYVOID-DEV/Altron

editor rich-text-editor svelte sveltekit

Last synced: 1 day ago
JSON representation

Rich text editor as a svelte component

Awesome Lists containing this project

README

        

# Altron

**Altron** is a robust and versatile rich text editor designed for Svelte applications. It empowers users to effortlessly create, edit, and manage structured text content by seamlessly incorporating various blocks with associated data. This component is meticulously crafted to offer high customizability, responsiveness on mobile devices, and support for both editing and viewing modes.

## Documentation site

You can check our [altron-site](https://altron.vercel.app). We have clear documentation with an example and a live testing route.

## Getting started

To use altron we need to follow the following steps.

1-Installing altron core package

```bash
pnpm i @altron/altron
```

2-Loading blocks dependencies with the cli

```bash
pnpm dlx @altron/altron-cli
```

3-Importing the entry and componentMap

The cli will create a map that links the component name with it svelte class.You need to import and pass it to altron entry as a prop.

```Svelte

import Altron from "@altron/altron/altron.svelte"
import { componentMap } from '$lib/components/altron/index';

```

## Contribution

We welcome contributions! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

## License

This project is licensed under the [MIT License](https://opensource.org/license/mit/).Feel free to use or modify as needed!