mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-25 23:42:12 +08:00

Some checks are pending
test-js / build (push) Waiting to run
Includes unwrap and toggle open actions.
39 lines
982 B
TypeScript
39 lines
982 B
TypeScript
import {EditorFormModalDefinition} from "../framework/modals";
|
|
import {details, image, link, media} from "./forms/objects";
|
|
import {source} from "./forms/controls";
|
|
import {cellProperties, rowProperties, tableProperties} from "./forms/tables";
|
|
|
|
export const modals: Record<string, EditorFormModalDefinition> = {
|
|
link: {
|
|
title: 'Insert/Edit Link',
|
|
form: link,
|
|
},
|
|
image: {
|
|
title: 'Insert/Edit Image',
|
|
form: image,
|
|
},
|
|
media: {
|
|
title: 'Insert/Edit Media',
|
|
form: media,
|
|
},
|
|
source: {
|
|
title: 'Source code',
|
|
form: source,
|
|
},
|
|
cell_properties: {
|
|
title: 'Cell Properties',
|
|
form: cellProperties,
|
|
},
|
|
row_properties: {
|
|
title: 'Row Properties',
|
|
form: rowProperties,
|
|
},
|
|
table_properties: {
|
|
title: 'Table Properties',
|
|
form: tableProperties,
|
|
},
|
|
details: {
|
|
title: 'Edit collapsible block',
|
|
form: details,
|
|
}
|
|
}; |