resources/js/wysiwyg/ui/defaults/forms/objects.ts
Function build
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
build() {
return new EditorFormTabs([
{
label: 'General',
contents: [
Function action
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async action(formData, context: EditorUiContext) {
const selectedNode: MediaNode|null = await (new Promise((res, rej) => {
context.editor.getEditorState().read(() => {
const node = $getNodeFromSelection($getSelection(), $isMediaNode);
res(node as MediaNode|null);