✨(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:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user