From 9a9e7938bcbcb5aeb32f787bd634ec57b07f0d82 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 5 Nov 2024 11:37:57 +0100 Subject: [PATCH] fix(editor): Restore accidently removed editor API `onLinkClick` callback This is still required for link handling in Nextcloud 27 and 28. Signed-off-by: Jonas --- src/mixins/editorMixin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mixins/editorMixin.js b/src/mixins/editorMixin.js index bbdf45772..d7bdcaebb 100644 --- a/src/mixins/editorMixin.js +++ b/src/mixins/editorMixin.js @@ -118,6 +118,10 @@ export default { currentPage: this.pageInfoBarPage || this.pageToUse, }, }, + // Required for link handling on Nextcloud 27+28 + onLinkClick: (_event, attrs) => { + this.followLink(_event, attrs) + }, onOutlineToggle: (visible) => { this.toggleOutlineFromEditor(visible) },