]> BookStack Code Mirror - bookstack/blob - resources/js/wysiwyg/ui/framework/blocks/action-field.ts
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / wysiwyg / ui / framework / blocks / action-field.ts
1 import {EditorContainerUiElement, EditorUiElement} from "../core";
2 import {el} from "../../../utils/dom";
3 import {EditorButton} from "../buttons";
4
5
6 export class EditorActionField extends EditorContainerUiElement {
7     protected input: EditorUiElement;
8     protected action: EditorButton;
9
10     constructor(input: EditorUiElement, action: EditorButton) {
11         super([input, action]);
12
13         this.input = input;
14         this.action = action;
15     }
16
17     buildDOM(): HTMLElement {
18         return el('div', {
19             class: 'editor-action-input-container',
20         }, [
21             this.input.getDOMElement(),
22             this.action.getDOMElement(),
23         ]);
24     }
25 }