Skip to content

Alignment Buttons state do not update immediately when used to modify images #4145

Open

Description

Are you reporting a feature request or a bug?

Bug

Provide detailed reproduction steps (if any)

Using CKEditor v4 Full Package:

  1. Insert an image into the editor
  2. Click the image
  3. Click right align (or any of the alignment buttons)
  4. Notice that the image moves and that the alignment style is applied to it (style="float:right" in the case of using right align)
  5. However, notice that the alignment buttons do not change state (the alignment button you just pressed, right align in this example, doesn't appear pressed)
  6. Click somewhere else on the editor (or page) and click the image again
  7. Notice that the correct alignment button appears pressed now

Extra notes:
Can be tested on: https://ckeditor.com/docs/ckeditor4/latest/examples/fullpreset.html

Expected result

When using alignment with images, the alignment buttons state are immediately updated when pressed

Actual result

When using alignment with images, the alignment buttons state are not immediately updated when pressed (remain stale) and require you to unclick the image for them to update

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

Metadata

Assignees

No one assigned

    Labels

    plugin:imageThe plugin which probably causes the issue.The plugin which probably causes the issue.plugin:justifyThe plugin which probably causes the issue.The plugin which probably causes the issue.status:confirmedAn issue confirmed by the development team.An issue confirmed by the development team.type:bugA bug.A bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions