Skip to content

Commit

Permalink
fix: test module default enable full
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxming committed Nov 6, 2024
1 parent 4b91421 commit 085e57b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/__tests__/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
Expand Down

0 comments on commit 085e57b

Please sign in to comment.