Release 2.8.0
This commit is contained in:
@@ -45,6 +45,12 @@ test('slide editor tracks uploaded image paths for cleanup', () => {
|
||||
assert.ok(slideFormEditorSource.includes('clearImageUploadPaths'));
|
||||
});
|
||||
|
||||
test('slide editor marks the owning form dirty after TinyMCE edits', () => {
|
||||
assert.ok(slideFormEditorSource.includes("var markFormDirty = typeof settings.markFormDirty === 'function' ? settings.markFormDirty : function () {};"));
|
||||
assert.match(slideFormEditorSource, /if \(hydrated\)\s*\{\s*markFormDirty\(\);/);
|
||||
assert.match(slideFormSource, /markFormDirty:\s*function \(\)\s*\{\s*slideForm\.dataset\.dirty = 'true';/);
|
||||
});
|
||||
|
||||
test('slide editor keeps image-only rich text from being treated as empty', () => {
|
||||
assert.ok(slideFormEditorSource.includes('/<img\\b/i.test(raw)'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user