Skip to content

Commit

Permalink
Remove thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
tavaresasilva committed Sep 5, 2024
1 parent 9a5210c commit b0c5f54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 80 deletions.
11 changes: 1 addition & 10 deletions src/components/editor/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { IMemento } from "@/core/IMemento";
import { DependencyContainer } from "@/core/DependencyContainer";
import { MediaInputter } from "../media-inputter/MediaInputter";
import { InputLinkBoxWrapper } from "../floating-toolbar/link-box/InputLinkBoxWrapper";
import { Thumbnail } from "../feature-image/Thumbnail";

export class Editor extends BaseUIComponent {

Expand All @@ -22,7 +21,6 @@ export class Editor extends BaseUIComponent {
private memento: IMemento;

private title?: Title;
private thumbnail?: Thumbnail;
private content?: Content;
private addBlock: AddBlockWrapper;
private textFloatingToolbar: TextContextFloatingToolbar;
Expand All @@ -36,7 +34,6 @@ export class Editor extends BaseUIComponent {
blockOperationsService: IBlockOperationsService,
memento: IMemento,
title: Title,
thumbnail: Thumbnail,
content: Content,
addBlock: AddBlockWrapper,
floatingToolbar: TextContextFloatingToolbar,
Expand All @@ -50,7 +47,6 @@ export class Editor extends BaseUIComponent {
elementFactoryService: elementFactoryService,
blockOperationsService: blockOperationsService,
title: title,
thumbnail: thumbnail,
content: content,
addBlock: addBlock,
floatingToolbar: floatingToolbar,
Expand Down Expand Up @@ -93,10 +89,6 @@ export class Editor extends BaseUIComponent {
contentWrapper.appendChild(this.props.title.htmlElement);
}

if (window.editorConfig?.enableThumbnail || false) {
contentWrapper.appendChild(this.props.thumbnail.htmlElement);
}

// Content is required
contentWrapper.appendChild(this.props.content.htmlElement);

Expand Down Expand Up @@ -134,10 +126,9 @@ export class Editor extends BaseUIComponent {
const blockOperationsService = DependencyContainer.Instance.resolve<IBlockOperationsService>("IBlockOperationsService");
const memento = DependencyContainer.Instance.resolve<IMemento>("IMemento");
const inputLinkBoxWrapper = new InputLinkBoxWrapper();
const thumbnail = new Thumbnail();

if (!Editor.instance) {
Editor.instance = new Editor(elementFactoryService, blockOperationsService, memento, title, thumbnail, content, addBlock, textFloatingToolbar, quickMenu, tableFloatingToolbar, mediaInputter, inputLinkBoxWrapper);
Editor.instance = new Editor(elementFactoryService, blockOperationsService, memento, title, content, addBlock, textFloatingToolbar, quickMenu, tableFloatingToolbar, mediaInputter, inputLinkBoxWrapper);
}

return Editor.instance;
Expand Down
70 changes: 0 additions & 70 deletions src/components/feature-image/Thumbnail.ts

This file was deleted.

0 comments on commit b0c5f54

Please sign in to comment.