fix(wysiwyg):Improve Wysiwyg editor

This commit is contained in:
Juergen Kunz
2025-06-24 13:41:12 +00:00
parent 08a4c361fa
commit 4b2178cedd
13 changed files with 581 additions and 349 deletions

View File

@ -1,7 +1,8 @@
import { type IBlock } from './wysiwyg.types.js';
import { type IWysiwygComponent } from './wysiwyg.interfaces.js';
export class WysiwygDragDropHandler {
private component: any;
private component: IWysiwygComponent;
private draggedBlockId: string | null = null;
private dragOverBlockId: string | null = null;
private dragOverPosition: 'before' | 'after' | null = null;
@ -13,7 +14,7 @@ export class WysiwygDragDropHandler {
private lastUpdateTime: number = 0;
private updateThrottle: number = 80; // milliseconds
constructor(component: any) {
constructor(component: IWysiwygComponent) {
this.component = component;
}