Replies: 1 comment 1 reply
|
Can you share your exact If what you want is "set this one class and drop the others in its group", that's usually cleaner done by applying the class directly (a small custom command that sets |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Running Jodit v4.0.6
I am looking to leverage the "afterToggleAttributes" hook on commitStyle, but am running into some issues.
My need for this is that when applying class attribute using this function, it adds the appropriate class the the class list, instead of setting it as the only one. I am looking for a way to replace the class attribute on thee element i am running this method on with the appropriate class as shown below. I have also added the list of options for some insight into the possible key values in the exec property.
When I trigger that commitStyle function, an error is thrown that I need an event handler for the hook. Where do I go about defining one, in the hook object?
the documentation is not very clear to me:
https://xdsoft.net/jodit/docs/interfaces/types.IStyleOptions.html#hooks
All reactions