Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix height jumping when editing text (#1788)

Ivan Starkovad5419a4fd0d
diff --git a/apps/builder/app/canvas/features/text-editor/text-editor.tsx b/apps/builder/app/canvas/features/text-editor/text-editor.tsx
index e52aa7dc25..99618a8d49 100644
--- a/apps/builder/app/canvas/features/text-editor/text-editor.tsx
+++ b/apps/builder/app/canvas/features/text-editor/text-editor.tsx
@@ -141,7 +141,7 @@ export const TextEditor = ({
// reset paragraph styles and make it work inside <a>
engine.addPlaintextRule(`
- .${paragraphClassName} { display: inline; margin: 0; }
+ .${paragraphClassName} { display: inline-block; margin: 0; }
`);
/// set italic style for bold italic combination on the same element
engine.addPlaintextRule(`