Skip to content

bug: Code editor does not auto-format on load — starts with minified/unformatted code #155

Description

@Manav5234

Bug Description

When the Webify editor loads with a template selected, the HTML code appears minified (all on one line) in the editor. The user has to manually click the "Format" button every time to make it readable.

Expected Behavior

The code should be automatically formatted when the page loads or when a template is selected, so it's readable from the start.

Steps to Reproduce

  1. Open Webify
  2. Select any template
  3. Look at the HTML editor — code is all on one line

Suggested Fix

Call the format function automatically on page load / template load.

Additional Info

  • The Format button already works correctly
  • This is a UX improvement — users shouldn't need to manually format every time

SCREENSHOT

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions