(frontend) preserve interlink style on drag-and-drop in editor

adds hook to normalize dropped blocks and restore internal link format

Signed-off-by: Cyril <c.gromoff@gmail.com>
This commit is contained in:
Cyril
2025-10-07 14:41:18 +02:00
parent 45d6c1beef
commit 91eba31735
4 changed files with 14 additions and 6 deletions

View File

@@ -760,7 +760,7 @@ test.describe('Doc Editor', () => {
// Wait for the interlink to be created and rendered
const editor = page.locator('.ProseMirror.bn-editor');
const interlink = editor.getByRole('link', {
const interlink = editor.getByRole('button', {
name: docChild2,
});

View File

@@ -472,7 +472,7 @@ test.describe('Doc Export', () => {
// Search the interlinking link in the editor (not in the document tree)
const editor = page.locator('.ProseMirror.bn-editor');
const interlink = editor.getByRole('link', {
const interlink = editor.getByRole('button', {
name: randomDoc,
});