mirror of
https://github.com/codex-team/editor.js
synced 2024-06-20 06:35:48 +02:00
apply filter blur immediatelly (#137)
This commit is contained in:
parent
664e01a020
commit
e9e05c9a9f
|
@ -127,7 +127,7 @@
|
||||||
|
|
||||||
.authorsPhoto-wrapper {
|
.authorsPhoto-wrapper {
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
transition: all 500ms ease-in;
|
transition: all 20ms ease-in;
|
||||||
will-change: opacity, filter;
|
will-change: opacity, filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -342,14 +342,14 @@ var quote = (function(quote) {
|
||||||
var uploadImageWrapper = codex.content.currentNode.querySelector('.' + elementClasses_.withPhoto.photo),
|
var uploadImageWrapper = codex.content.currentNode.querySelector('.' + elementClasses_.withPhoto.photo),
|
||||||
authorsPhoto = ui_.img(elementClasses_.authorsPhoto);
|
authorsPhoto = ui_.img(elementClasses_.authorsPhoto);
|
||||||
|
|
||||||
|
/** Appending uploaded image */
|
||||||
|
uploadImageWrapper.classList.add(elementClasses_.authorsPhotoWrapper, elementClasses_.authorsPhotoWrapper_preview);
|
||||||
|
|
||||||
authorsPhoto.src = e.target.result;
|
authorsPhoto.src = e.target.result;
|
||||||
|
|
||||||
/** Remove icon from image wrapper */
|
/** Remove icon from image wrapper */
|
||||||
uploadImageWrapper.innerHTML = '';
|
uploadImageWrapper.innerHTML = '';
|
||||||
|
|
||||||
/** Appending uploaded image */
|
|
||||||
uploadImageWrapper.classList.add(elementClasses_.authorsPhotoWrapper, elementClasses_.authorsPhotoWrapper_preview);
|
|
||||||
|
|
||||||
uploadImageWrapper.appendChild(authorsPhoto);
|
uploadImageWrapper.appendChild(authorsPhoto);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue