Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format styles dropdown does not show the currerntly active selection #486

Open
mscherr-fastspot opened this issue Feb 27, 2024 · 0 comments
Labels

Comments

@mscherr-fastspot
Copy link

Description

Related to #246 which was closed by the original author.

The format dropdown does not highlight the format (if applicable) of the currently selected text:

Cursor is currently on the H2 behind the dropdown

CleanShot 2024-02-27 at 11 18 20@2x

In the documentation for Imperavi (linked from this repo) for the "Format styles", this functionality works by adding an active class to the dropdown element:

CleanShot 2024-02-27 at 11 13 41@2x

This functionality does not seem to be in the Craft plugin.

Steps to reproduce

  1. Select any text that relates to a format option in the editor
  2. Notice that the active format is not visually shown in the format dropdown, as shown in the Imperavi link.

Additional info

  • Craft version: 4.8.0
  • PHP version: 8.2
  • Database driver & version: MySQL 8.0.33
  • Plugins & versions: Redactor 3.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant