Skip to content

QEditor: clicking away from linkEditor leaves a broken link #18289

Closed

Description

@robgwin

What happened?

In q-editor, select some text, click the link button, paste in a URL. Instead of hitting enter or "update", click back into the main editor to continue writing. It looks like you've successfully added the link, so you carry on, unaware that it saved as "https://" because you didn't apply it.

What did you expect to happen?

Either:

A. If I haven't actually applied the URL, the text should not appear as linked, or

B. The link should be applied when I click away from the link editor

I think option B probably makes more sense, because it also handles the scenario of re-editing an existing link, and I think it matches what a typical user would expect (No other editor content requires an explicit "update" action.)

It seems like this could be accomplished by adding an onBlur() callback after the onKeydown callback in editor-utils.js:getLinkEditor()

        onBlur: () => {
          updateLink()
        },

Reproduction URL

https://stackblitz.com/edit/quasarframework-stackblitz-templates-fysxxjxb?file=src%2Fpages%2FIndexPage.vue

How to reproduce?

(Note you can also reproduce this directly on https://quasar.dev/vue-components/editor)

  1. Select any unlinked word and click the link tool
  2. Paste in a URL (do not hit enter or update)
  3. Click in the main editor window
  4. Notice the word appears linked
  5. Select the word again and click the link tool
  6. Notice the link is actually 'https://'

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Chrome

Quasar info output

Relevant log output

Additional context

No response

Activity

  1. github-actions commented on Apr 12, 2026

    @github-actions
  2. robgwin commented on Apr 12, 2026

    @robgwin
    Author

    The issue can be reproduced directly on the quasar.dev demo page, but I've added a StackBlitz now to satisfy the requirement.

  3. added
    bug/1-repro-availableA reproduction is available and needs to be confirmed.
    and removed on Apr 12, 2026
  4. rstoenescu commented on Aug 17, 2026

    @rstoenescu
    Member

    Fix lands in v2.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/uiQuasar UI: the quasar package, @quasar/extras, @quasar/vite-pluginbug/1-repro-availableA reproduction is available and needs to be confirmed.kind/bug 🐞

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions