From 085e57bb47037dd40dda921f8a7048509b2faa4f Mon Sep 17 00:00:00 2001 From: zzxming Date: Wed, 6 Nov 2024 21:49:08 +0800 Subject: [PATCH] fix: test module default enable full --- src/__tests__/utils.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/__tests__/utils.ts b/src/__tests__/utils.ts index 06c7a58..d15802b 100644 --- a/src/__tests__/utils.ts +++ b/src/__tests__/utils.ts @@ -25,7 +25,7 @@ export const sortAttributes = (element: HTMLElement) => { } }); }; -export const createQuillWithTableModule = (html: string, options = true, moduleOptions = {}, register = {}) => { +export const createQuillWithTableModule = (html: string, options = {}, moduleOptions = {}, register = {}) => { Quill.register({ 'modules/tableUp': TableUp, ...register, @@ -34,7 +34,10 @@ export const createQuillWithTableModule = (html: string, options = true, moduleO container.innerHTML = normalizeHTML(html); const quill = new Quill(container, { modules: { - tableUp: options, + tableUp: { + full: true, + ...options, + }, history: { delay: 0, },