feat: create a pure extension rather than depend on the UmbImage extension as we don't need all of that

This commit is contained in:
Jacob Overgaard
2024-09-20 09:20:27 +02:00
parent 2c3dd9ab91
commit 1d48c1e86d

View File

@@ -5,7 +5,7 @@ import {
type UmbTemporaryFileModel,
} from '@umbraco-cms/backoffice/temporary-file';
import { imageSize } from '@umbraco-cms/backoffice/utils';
import { type Editor, UmbImage } from '@umbraco-cms/backoffice/external/tiptap';
import { type Editor, Extension } from '@umbraco-cms/backoffice/external/tiptap';
import { UmbId } from '@umbraco-cms/backoffice/id';
import { UMB_NOTIFICATION_CONTEXT } from '@umbraco-cms/backoffice/notification';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
@@ -49,7 +49,7 @@ export default class UmbTiptapMediaUploadExtension extends UmbTiptapExtensionApi
// eslint-disable-next-line @typescript-eslint/no-this-alias
const self = this;
return [
UmbImage.extend({
Extension.create({
name: 'umbMediaUpload',
onCreate() {
this.parent?.();