Skip to content

Commit 1a6ab4a

Browse files
committed
Adds UmbEmbeddedMediaOptions to strongly-type the inline option
1 parent fde8342 commit 1a6ab4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-umb-embedded-media.extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { mergeAttributes, Node } from '@tiptap/core';
22

3-
export const umbEmbeddedMedia = Node.create({
3+
export interface UmbEmbeddedMediaOptions {
4+
inline: boolean;
5+
}
6+
7+
export const umbEmbeddedMedia = Node.create<UmbEmbeddedMediaOptions>({
48
name: 'umbEmbeddedMedia',
59
group() {
610
return this.options.inline ? 'inline' : 'block';

0 commit comments

Comments
 (0)