@bigbinary/neeto-editor-frontend 2.3.2 → 2.4.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.ready +1 -1
- package/dist/cjs/v2/Editor.cjs.js +4 -1
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/v2/Editor.js +4 -1
- package/dist/v2/Editor.js.map +1 -1
- package/package.json +11 -11
package/dist/v2/Editor.js
CHANGED
|
@@ -612,7 +612,10 @@ var AttachmentExtension = Node.create({
|
|
|
612
612
|
return {
|
|
613
613
|
uploadAttachments: function uploadAttachments(files, position) {
|
|
614
614
|
return function (_ref4) {
|
|
615
|
-
var editor = _ref4.editor
|
|
615
|
+
var editor = _ref4.editor,
|
|
616
|
+
tr = _ref4.tr;
|
|
617
|
+
// uploadFiles dispatches its own transaction, so this command's tr is stale.
|
|
618
|
+
tr.setMeta("preventDispatch", true);
|
|
616
619
|
_this.storage.uploadFiles(editor, Array.from(files), position);
|
|
617
620
|
return true;
|
|
618
621
|
};
|