我使用带有symfony形式的dropzone(许多其他输入)。当我调用processQueue()时,文件将从queuefiles中删除,我无法再次调用processQueue()。如何禁用自动删除文件?
答案 0 :(得分:1)
如果QueuedFiles为空,我们可以再次将文件添加到队列中:
//Register a custom snippet
monaco.languages.registerCompletionItemProvider('javascript', {
provideCompletionItems: () => {
return [
{
label: 'for: Array',
kind: monaco.languages.CompletionItemKind.Snippet,
documentation: 'Iterate over an Array',
insertText: [
'for(let i=0; i < arr.length; i++){',
'\tlet elem = arr[i];',
'',
'}'].join('\n')
}
]
}
});
//Add custom action
this.editor = window.monaco.editor.create(this.$el, options);
window.activeEditor = this.editor
this.editor.addAction({
id: 'insert-text-at-cusor-command',
label: 'Command Snippet',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.F10],
contextMenuGroupId: 'snippets',
contextMenuOrder: 1.5,
run: function (ed) {
activeEditor.focus()
activeEditor.trigger('keyboard', 'type', {text: "for"});
}
});
不要忘记从.dz-preview容器中删除类'.dz-processing .dz-success .dz-complete'