From ac26bcff6840368be410c3dc0dd1e9b18f8f9bc7 Mon Sep 17 00:00:00 2001 From: splincode Date: Tue, 12 Nov 2024 11:54:46 +0300 Subject: [PATCH] chore: fix lint --- projects/editor/utils/legacy-converter.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/projects/editor/utils/legacy-converter.ts b/projects/editor/utils/legacy-converter.ts index 2d5a23147..d60cfbe2e 100644 --- a/projects/editor/utils/legacy-converter.ts +++ b/projects/editor/utils/legacy-converter.ts @@ -7,12 +7,12 @@ function migration(element: Element): void { if (child.tagName === 'FONT') { if (child.hasAttribute('size')) { switch (child.getAttribute('size')) { - case '6': { - migrateHeading('h1', child); + case '2': { + migrateParagraph('13px', child); break; } - case '5': { - migrateHeading('h2', child); + case '3': { + migrateParagraph('15px', child); break; } @@ -21,13 +21,13 @@ function migration(element: Element): void { break; } - case '3': { - migrateParagraph('15px', child); + case '5': { + migrateHeading('h2', child); break; } - case '2': { - migrateParagraph('13px', child); + case '6': { + migrateHeading('h1', child); break; } default: