]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/shortcuts.js
Audit Log: Fixed bad reference to linked entity item
[bookstack] / resources / js / wysiwyg / shortcuts.js
index 147e3c2d5c9aceb2d4c573a6aef5d8e4f74335c7..dbc725b1dcd64d55533978e862867fecffda5177 100644 (file)
@@ -58,6 +58,11 @@ export function register(editor) {
 
             editor.selection.collapse(false);
             editor.focus();
-        }, selectionText);
+        }, {
+            initialValue: selectionText,
+            searchEndpoint: '/search/entity-selector',
+            entityTypes: 'page,book,chapter,bookshelf',
+            entityPermission: 'view',
+        });
     });
 }