mirror of
https://github.com/codex-team/editor.js
synced 2024-05-13 11:56:58 +02:00
Attaches fix
This commit is contained in:
parent
665523a423
commit
ba88cf0ce9
|
@ -53,6 +53,7 @@
|
|||
.cdx-attaches__extension,
|
||||
.cdx-attaches__size {
|
||||
color: #8f9298;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cdx-attaches__extension::after {
|
||||
|
|
|
@ -21,7 +21,8 @@ var cdxAttaches = function () {
|
|||
* Private methods and props
|
||||
*/
|
||||
|
||||
var KBYTE = 1024;
|
||||
var KBYTE = 1024,
|
||||
fileWrapper = null;
|
||||
|
||||
/**
|
||||
* Default config
|
||||
|
@ -217,7 +218,7 @@ var cdxAttaches = function () {
|
|||
|
||||
upload.current = progress;
|
||||
|
||||
codex.editor.content.switchBlock(codex.editor.content.currentNode, progress, 'attaches');
|
||||
codex.editor.content.switchBlock(fileWrapper, progress, 'attaches');
|
||||
|
||||
},
|
||||
|
||||
|
@ -350,7 +351,8 @@ var cdxAttaches = function () {
|
|||
|
||||
if (!data) {
|
||||
|
||||
return ui.defaultForm();
|
||||
fileWrapper = ui.defaultForm();
|
||||
return fileWrapper;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue