mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Lexical: Added about button/view
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.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {EditorFormDefinition} from "../../framework/forms";
|
||||
import {EditorUiContext} from "../../framework/core";
|
||||
import {EditorUiContext, EditorUiElement} from "../../framework/core";
|
||||
import {setEditorContentFromHtml} from "../../../utils/actions";
|
||||
import {ExternalContent} from "../../framework/blocks/external-content";
|
||||
|
||||
export const source: EditorFormDefinition = {
|
||||
submitText: 'Save',
|
||||
@@ -15,4 +16,18 @@ export const source: EditorFormDefinition = {
|
||||
type: 'textarea',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const about: EditorFormDefinition = {
|
||||
submitText: 'Close',
|
||||
async action() {
|
||||
return true;
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
build(): EditorUiElement {
|
||||
return new ExternalContent('/help/wysiwyg');
|
||||
}
|
||||
}
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user