1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Lexical: Integrated image manager to image button/form

This commit is contained in:
Dan Brown
2024-08-13 19:36:18 +01:00
parent ec965f28c0
commit accf2565a0
12 changed files with 231 additions and 109 deletions

View File

@@ -0,0 +1,26 @@
import {EditorContainerUiElement, EditorUiElement} from "../core";
import {el} from "../../../utils/dom";
import {EditorFormField} from "../forms";
import {EditorButton} from "../buttons";
export class EditorActionField extends EditorContainerUiElement {
protected input: EditorFormField;
protected action: EditorButton;
constructor(input: EditorFormField, action: EditorButton) {
super([input, action]);
this.input = input;
this.action = action;
}
buildDOM(): HTMLElement {
return el('div', {
class: 'editor-action-input-container',
}, [
this.input.getDOMElement(),
this.action.getDOMElement(),
]);
}
}