mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-25 19:04:09 +08:00

Some checks failed
test-php / build (8.1) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
test-php / build (8.4) (push) Has been cancelled
analyse-php / build (push) Has been cancelled
lint-js / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-js / build (push) Has been cancelled
test-migrations / build (8.1) (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-migrations / build (8.4) (push) Has been cancelled
Re-used existing route and moved tinymce help to its own different route. Added test to cover. Added new external-content block to support in editor UI.
43 lines
1.0 KiB
TypeScript
43 lines
1.0 KiB
TypeScript
import {EditorFormModalDefinition} from "../framework/modals";
|
|
import {details, image, link, media} from "./forms/objects";
|
|
import {about, 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,
|
|
},
|
|
about: {
|
|
title: 'About the WYSIWYG Editor',
|
|
form: about,
|
|
}
|
|
}; |