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

Emit event on any style change #5461

Open
Daveyvdweide opened this issue Apr 18, 2023 · 0 comments
Open

Emit event on any style change #5461

Daveyvdweide opened this issue Apr 18, 2023 · 0 comments
Labels
core The issue is caused by the editor core code. status:confirmed An issue confirmed by the development team. type:feature A feature request.

Comments

@Daveyvdweide
Copy link

Daveyvdweide commented Apr 18, 2023

Type of report

Feature request

Provide description of the new feature

There are currently three events that relate to changes within the editor:

change
change is called whenever data is updated within the editor. Be it text or a style attribute.

selectionChange
selectionChange is called whenever text is selected and or updated.

afterCommandExec
afterCommandExec is called whenever an command is executed. This could be an list insertion or making text bold using the buttons. This event is not triggered whenever the font is changed.

What I am looking for, is a event that combines the change and afterCommandExec events. You should be able to catch any style change in an event, without it being triggered when typing text.

Example

Should be triggered when you:

  • Change font-size
  • Switch background colours
  • Remove or add text style attributes like bold, italic, etc.

Should not be triggered when you

  • Write text
  • Add an image
  • Remove text
@Daveyvdweide Daveyvdweide added the type:feature A feature request. label Apr 18, 2023
@Comandeer Comandeer added status:confirmed An issue confirmed by the development team. core The issue is caused by the editor core code. labels Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core The issue is caused by the editor core code. status:confirmed An issue confirmed by the development team. type:feature A feature request.
Projects
None yet
Development

No branches or pull requests

2 participants