Skip to content

Commit

Permalink
fix(editor): Restore accidently removed editor API onLinkClick call…
Browse files Browse the repository at this point in the history
…back

This is still required for link handling in Nextcloud 27 and 28.

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 5, 2024
1 parent e1f0244 commit 9a9e793
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mixins/editorMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down

0 comments on commit 9a9e793

Please sign in to comment.