1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-24 07:42:07 +03:00

Added source code view/set button

This commit is contained in:
Dan Brown
2022-01-19 11:31:02 +00:00
parent 7125530e55
commit b2283106fc
10 changed files with 175 additions and 9 deletions

View 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);