1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added radio options for anchor target option

This commit is contained in:
Dan Brown
2022-01-19 22:14:09 +00:00
parent 9b4ea368dc
commit e3ead1c115
2 changed files with 60 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import DialogBox from "./DialogBox";
import DialogForm from "./DialogForm";
import DialogInput from "./DialogInput";
import DialogRadioOptions from "./DialogRadioOptions";
import schema from "../schema";
import {MenuItem} from "./menu";
@ -38,12 +39,15 @@ function getLinkDialog(submitter, closer) {
value: getMarkAttribute(schema.marks.link, 'href'),
}),
new DialogInput({
label: 'Title',
label: 'Hover Label',
id: 'title',
value: getMarkAttribute(schema.marks.link, 'title'),
}),
new DialogInput({
label: 'Target',
new DialogRadioOptions({
"Same tab or window": "",
"New tab or window": "_blank",
},{
label: 'Behaviour',
id: 'target',
value: getMarkAttribute(schema.marks.link, 'target'),
})