Commit aa3ff14b authored by alexpott's avatar alexpott
Browse files

Issue #2350021 by Wim Leers | svenryen: Fixed After entering Quick Edit and...

Issue #2350021 by Wim Leers | svenryen: Fixed After entering Quick Edit and then closing (no save), image align is lost from image.
parent 3b2e57f0
......@@ -69,6 +69,14 @@
if (from !== 'inactive' && from !== 'highlighted') {
this.textEditor.detach(this.$textElement.get(0), this.textFormat);
}
// A field model's editor view revert() method is invoked when an
// 'active' field becomes a 'candidate' field. But, in the case of
// this in-place editor, the content will have been *replaced* if the
// text format has transformation filters. Therefore, if we stop
// in-place editing this entity, revert explicitly.
if (from === 'active' && this.textFormatHasTransformations) {
this.revert();
}
if (from === 'invalid') {
this.removeValidationErrors();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment