-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
changeAttribute converter consumes even if element creators returns null #4320
Closed
Labels
Milestone
Comments
null
Any chance it's related to https://github.com/ckeditor/ckeditor5-font/issues/12? |
I don't think so. 😢 |
@jodator clarified that the issue with font is caused by https://github.com/ckeditor/ckeditor5-engine/issues/1348, so I'm fine with that :D |
jodator
referenced
this issue
in ckeditor/ckeditor5-engine
Mar 21, 2018
Fixed: conversion.downcast-converters.changeAttribute should not consume if element creators returned null. Closes #1369.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As in title,
changeAttribute
converter first consumes consumables even if it is not going to do anything becauseelementCreator
s returnednull
. This means thatchangeAttribute
cannot be "aborted" using a proper (if statement) in a callback.In contrary,
wrap
does it correctly:The text was updated successfully, but these errors were encountered: