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

Added text color mark

This commit is contained in:
Dan Brown
2022-01-12 11:02:28 +00:00
parent 717557df89
commit 1018b5627e
3 changed files with 24 additions and 1 deletions

View File

@ -49,7 +49,7 @@ function markItem(markType, options) {
passedOptions[prop] = options[prop];
}
return cmdItem(toggleMark(markType), passedOptions)
return cmdItem(toggleMark(markType, passedOptions.attrs), passedOptions)
}
const inlineStyles = [
@ -117,11 +117,17 @@ const alignments = [
}),
];
const colors = [
markItem(schema.marks.text_color, {title: "Green", label: "Green", attrs: {color: '#00FF00'}}),
markItem(schema.marks.text_color, {title: "Blue", label: "Blue", attrs: {color: '#0000FF'}}),
];
const menu = menuBar({
floating: false,
content: [
[undoItem, redoItem],
[new DropdownSubmenu(formats, { label: 'Formats' })],
colors,
inlineStyles,
alignments,
],