4.1.1 • Published 9 months ago

@cartamd/plugin-attachment v4.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Carta Attachment Plugin

This plugin adds support for attachments. Install it using:

npm i @cartamd/plugin-attachment

Setup

Styles

Import the default theme, or create you own:

import '@cartamd/plugin-attachment/default.css';

Extension

<script lang="ts">
	import { Carta, MarkdownEditor } from 'carta-md';
	import { attachment } from '@cartamd/plugin-attachment';

	const carta = new Carta({
		extensions: [
			attachment({
				upload(file) {
					/* ... */
				}
			})
		]
	});
</script>

<MarkdownEditor {carta} />

Documentation

Checkout the docs for examples, options and more.

4.1.0

9 months ago

4.1.1

9 months ago

4.0.1

1 year ago

4.0.2

1 year ago

3.2.0

1 year ago

4.0.0

1 year ago

3.1.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.8.0

2 years ago

2.7.2

2 years ago

2.7.1

2 years ago

2.7.0

2 years ago