Skip to content

Emit event on any style change #5461

Open

Description

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    coreThe issue is caused by the editor core code.The issue is caused by the editor core code.status:confirmedAn issue confirmed by the development team.An issue confirmed by the development team.type:featureA feature request.A feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions