]> BookStack Code Mirror - bookstack/blobdiff - resources/js/editor/menu/item-anchor-button.js
Added source code view/set button
[bookstack] / resources / js / editor / menu / item-anchor-button.js
index d95ac2e78f339a9c604e82f9e1ec938399d17ae9..02dfba1ab830a62e676ebed9e8b5f4916006034c 100644 (file)
@@ -57,6 +57,12 @@ function getLinkDialog(submitter, closer) {
     });
 }
 
+/**
+ * @param {FormData} formData
+ * @param {PmEditorState} state
+ * @param {PmDispatchFunction} dispatch
+ * @return {boolean}
+ */
 function applyLink(formData, state, dispatch) {
     const selection = state.selection;
     const attrs = Object.fromEntries(formData);