[WEB-2450] dev: custom image extension (#5585)
* fix: svg not supported in image uploads * fix: svg image file error message fixed * feat: add custom image node for uploads * fix: combine two extensions * fix: added new image extension to backend * fix: type errors * style: image drop node * style: image resize handler * fix: removed unused stuff * fix: types of updateAttributes * fix: image insertion at pos and loading effect added * fix: resize image real time sync * fix: drag drop menu * feat: custom image component editor * fix: reverted back styles * fix: reverted back document info changes * fix: css image css * style: image selected and hover states * refactor: custom image extension folder structure * style: read-only image * chore: remove file handler * fix: fixed multi time file opener * fix: editor readonly content set properly * fix: old images not rendered as new ones * fix: drop upload fixed * chore: remove console logs * fix: src of image node as dependency * fix: helper library build fix * fix: improved reflow/layout and fixed resizing --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
parent
edf0ab8175
commit
8533eba07d
41 changed files with 947 additions and 257 deletions
|
|
@ -4,20 +4,17 @@ import { SlashCommand } from "@/extensions";
|
|||
// plane editor types
|
||||
import { TIssueEmbedConfig } from "@/plane-editor/types";
|
||||
// types
|
||||
import { TExtensions, TFileHandler, TUserDetails } from "@/types";
|
||||
import { TExtensions, TUserDetails } from "@/types";
|
||||
|
||||
type Props = {
|
||||
disabledExtensions?: TExtensions[];
|
||||
fileHandler: TFileHandler;
|
||||
issueEmbedConfig: TIssueEmbedConfig | undefined;
|
||||
provider: HocuspocusProvider;
|
||||
userDetails: TUserDetails;
|
||||
};
|
||||
|
||||
export const DocumentEditorAdditionalExtensions = (props: Props) => {
|
||||
const { fileHandler } = props;
|
||||
|
||||
const extensions: Extensions = [SlashCommand(fileHandler.upload)];
|
||||
export const DocumentEditorAdditionalExtensions = (_props: Props) => {
|
||||
const extensions: Extensions = [SlashCommand()];
|
||||
|
||||
return extensions;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue