Make "AI Assistant" functionality available through contextual (baloon) menu

Created on 28 March 2025, 27 days ago

If you want to modify text with AI you currently have to select the text in the CKEditor window and then click the button, to invoke the desired plugin.

It would be great, if the same action could be invoked with a contextual or even balloon menu: When you select the text, a menu appears next to the selection, that you can use, to do the same thing as with the button.

โœจ Feature request
Status

Active

Version

1.1

Component

AI CKEditor

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany breidert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @breidert
  • Merge request !536Baloon menu โ†’ (Merged) created by breidert
  • Pipeline finished with Failed
    27 days ago
    Total: 376s
    #459935
  • Pipeline finished with Success
    27 days ago
    Total: 428s
    #459939
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany breidert

    The code in the MR works nicely. You get the same btton in a baloon menu.

    The result looks like this:

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany breidert
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany breidert
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom MrDaleSmith

    That works very nicely and is a good idea. I can't quite shake the suspicion that this is a little non-standard, as a lot of the other buttons on the CKEditor toolbar *could* also work the same way (formatting, font choices) but don't. I'll let the maintainers have the final decision, but at the very least it might be nice to make this something you could turn off in a setting?

  • ๐Ÿ‡ต๐Ÿ‡นPortugal bbruno Poland

    This is a nice idea, I have tested it locally and it works as expected. I agree with mrdalesmith that it perhaps is a little non-standard, but in my opinion provides a much better ux than the current option.

    Non-related to the issue itself, but the changes in the package-lock.json and yarn.lock indicate that we have multiple package handlers at work here, it would be best to stick to one to avoid any inconsistencies due to unsynced lock files.

  • Pipeline finished with Success
    20 days ago
    Total: 297s
    #465188
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany a.dmitriiev

    a.dmitriiev โ†’ made their first commit to this issueโ€™s fork.

  • Pipeline finished with Success
    16 days ago
    Total: 207s
    #468163
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany a.dmitriiev

    I have split main plugin and balloon plugin in the way, that if you want the balloon menu you need to drag a new item to toolbar. This item is invisible. If you don't need it, the behavior will still be the same.

  • Pipeline finished with Canceled
    16 days ago
    Total: 178s
    #468305
  • Pipeline finished with Success
    16 days ago
    Total: 392s
    #468308
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia snehal-chibde

    Hello, I have tested this locally and it works as expected.
    Tested on Drupal 11.1.6 version, AI Module version1.0.x.
    Baloon menu is visible as expected

    Added a before and after screenshot of the same.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany a.dmitriiev
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia prashant.c Dharamshala

    This is an extremely useful feature to have. It is working nicely; however, one minor observation is that sometimes when there is text below the selected text, then the positioning of the button "AI assistant" is a bit off, however working properly.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany yannickoo Berlin
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany yannickoo Berlin
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany marcus_johansson

    Hi everyone, awesome function, code reviewed and merged

Production build 0.71.5 2024