Skip to content

Commit

Permalink
feat: add option to override suggestions-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
m-risto committed Sep 16, 2024
1 parent ffc10d9 commit d7855e6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions libs/ngx-blocknote/src/lib/editor/bna-editor.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,16 @@
<bna-file-panel />
}
</bna-file-panel-controller>
<bna-suggestions-menu-controller triggerCharacter="/" class="z-index-3">
@if (suggestionMenuShown()) {
<bna-suggestions-menu triggerCharacter="/" />
}
</bna-suggestions-menu-controller>
<div #slashMenu>
<ng-content select="bna-formatting-toolbar-controller" />
</div>
@if (!slashMenu.hasChildNodes()) {
<bna-suggestions-menu-controller triggerCharacter="/" class="z-index-3">
@if (suggestionMenuShown()) {
<bna-suggestions-menu triggerCharacter="/" />
}
</bna-suggestions-menu-controller>
}
<bna-link-toolbar-controller>
@if (linkToolbarShown()) {
<bna-link-toolbar>
Expand Down

0 comments on commit d7855e6

Please sign in to comment.