2024-08-02 15:28:54 +01:00
|
|
|
import {EditorFormModalDefinition} from "../framework/modals";
|
2024-12-15 18:13:49 +00:00
|
|
|
import {details, image, link, media} from "./forms/objects";
|
2024-12-17 22:40:28 +00:00
|
|
|
import {about, source} from "./forms/controls";
|
2024-08-03 18:01:54 +01:00
|
|
|
import {cellProperties, rowProperties, tableProperties} from "./forms/tables";
|
2024-08-02 15:28:54 +01:00
|
|
|
|
|
|
|
export const modals: Record<string, EditorFormModalDefinition> = {
|
|
|
|
link: {
|
2024-09-22 12:29:06 +01:00
|
|
|
title: 'Insert/Edit Link',
|
2024-08-02 15:28:54 +01:00
|
|
|
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,
|
|
|
|
},
|
2024-08-03 18:01:54 +01:00
|
|
|
row_properties: {
|
|
|
|
title: 'Row Properties',
|
|
|
|
form: rowProperties,
|
|
|
|
},
|
|
|
|
table_properties: {
|
|
|
|
title: 'Table Properties',
|
|
|
|
form: tableProperties,
|
|
|
|
},
|
2024-12-15 18:13:49 +00:00
|
|
|
details: {
|
|
|
|
title: 'Edit collapsible block',
|
|
|
|
form: details,
|
2024-12-17 22:40:28 +00:00
|
|
|
},
|
|
|
|
about: {
|
|
|
|
title: 'About the WYSIWYG Editor',
|
|
|
|
form: about,
|
2024-12-15 18:13:49 +00:00
|
|
|
}
|
2024-08-02 15:28:54 +01:00
|
|
|
};
|