fix: Task List Behaviour in Editor (#2789)
* better variable names and comments * drag drop migrated * custom horizontal rule created * init transaction hijack * fixed code block with better contrast, keyboard tripple enter press disabled and syntax highlighting * fixed link selector closing on open behaviour * added better keymaps and syntax highlights * made drag and drop working for code blocks * fixed drag drop for code blocks * moved drag drop only to rich text editor * fixed drag and drop only for description * enabled drag handles for peek overview and main issues * got images to old state * fixed task lists to be smaller * removed validate image functions and uncessary imports * table icons svg attributes fixed * custom list keymap extension added * more uncessary imports of validate image removed * removed console logs * fixed drag-handle styles * space styles updated for the editor * removed showing quotes from blockquotes * removed validateImage for now * added better comments and improved redundant renders * removed uncessary console logs * created util for creating the drag handle element * fixed file names
This commit is contained in:
parent
3d8da99eec
commit
2cca0b1e76
24 changed files with 508 additions and 88 deletions
|
|
@ -34,7 +34,6 @@ export class FileService extends APIService {
|
|||
constructor() {
|
||||
super(API_BASE_URL);
|
||||
this.uploadFile = this.uploadFile.bind(this);
|
||||
// this.validateFile = this.validateFile.bind(this);
|
||||
this.deleteImage = this.deleteImage.bind(this);
|
||||
this.cancelUpload = this.cancelUpload.bind(this);
|
||||
}
|
||||
|
|
@ -63,14 +62,6 @@ export class FileService extends APIService {
|
|||
this.cancelSource.cancel("Upload cancelled");
|
||||
}
|
||||
|
||||
// async validateFile(assetUrlWithWorkspaceId: string): Promise<any> {
|
||||
// console.log("bruh", assetUrlWithWorkspaceId);
|
||||
// const res = await this.get(`/api/workspaces/file-assets/${assetUrlWithWorkspaceId}/`);
|
||||
// const data = res?.data;
|
||||
// console.log("data inside fucntion");
|
||||
// return data.status;
|
||||
// }
|
||||
//
|
||||
getUploadFileFunction(workspaceSlug: string): (file: File) => Promise<string> {
|
||||
return async (file: File) => {
|
||||
const formData = new FormData();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue