]> BookStack Code Mirror - bookstack/blobdiff - resources/js/markdown/actions.js
respective book and chapter structure added.
[bookstack] / resources / js / markdown / actions.js
index 511f1ebdae6a38caa7fa31b3d965cc9890e4694e..86e25532802384f471bf6896f7d2c8f845a844f1 100644 (file)
@@ -1,4 +1,4 @@
-import * as DrawIO from '../services/drawio';
+import * as DrawIO from '../services/drawio.ts';
 
 export class Actions {
 
@@ -73,7 +73,8 @@ export class Actions {
             const selectedText = selectionText || entity.name;
             const newText = `[${selectedText}](${entity.link})`;
             this.#replaceSelection(newText, newText.length, selectionRange);
-        }, selectionText, {
+        }, {
+            initialValue: selectionText,
             searchEndpoint: '/search/entity-selector',
             entityTypes: 'page,book,chapter,bookshelf',
             entityPermission: 'view',