resources/js/wysiwyg/ui/defaults/forms/tables.ts
File tables.ts
has 300 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
EditorFormDefinition,
EditorFormFieldDefinition,
EditorFormTabs,
EditorSelectFormFieldDefinition
Function build
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
build() {
const generalFields: EditorFormFieldDefinition[] = [
{
label: 'Width', // Colgroup width
name: 'width',
Function build
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
build() {
const generalFields: EditorFormFieldDefinition[] = [
{
label: 'Width', // Style - width
name: 'width',
Function action
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async action(formData, context: EditorUiContext) {
context.editor.update(() => {
const table = $getTableFromSelection($getSelection());
if (!table) {
return;