Commit c0bc4d53 authored by Bert Leunis's avatar Bert Leunis

CMS-10917 wrap schedule save in set-timeout

parent 888acb61
/*
* Copyright 2014 Hippo B.V. (http://www.onehippo.com)
* Copyright 2014-2018 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -63,7 +63,9 @@
}
editor.on('change', function() {
scheduleSave(editor.getData());
window.setTimeout(function () {
scheduleSave(editor.getData());
}, 0);
});
// Detect changes in source mode.
......
Markdown is supported
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