[KB-41052] Avoid error in CKEditor 4 with saveMode = base64 #874
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
A customer reported that in CKEditor 4, when setting
wiriseditorsavemode = base64
(instead of the defaultxml
), the editor throws an error when double clicking a formula, and this lead to inconsistent behaviors. Among others, formulas would randomly disappear.This was caused by the fix of KB-34325 introduced a few months ago, which would decode the src of base64 formulas, causing the
Image#fixAfterResize
function of the devkit to throw an error upon unexpectedly finding a formula NOT in base64 despitewiriseditorsavemode
being set tobase64
.Steps to reproduce
html-integrations
.configuration.ini
file to havewiriseditorsavemode = base64
.You should also check that the fix introduced for KB-34325 still works, as this fix has been modified. To do that, follow the steps of #828 but with this branch.
#taskid 41052