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:
26
resources/js/wysiwyg/ui/framework/blocks/action-field.ts
Normal file
26
resources/js/wysiwyg/ui/framework/blocks/action-field.ts
Normal 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(),
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user