fix image prompt
authorJan Szejko <janek37@gmail.com>
Wed, 28 Dec 2016 09:05:47 +0000 (10:05 +0100)
committerJan Szejko <janek37@gmail.com>
Wed, 28 Dec 2016 09:05:47 +0000 (10:05 +0100)
src/editor/plugins/core/img/imgElement.js

index ae0e081..ff3dad3 100644 (file)
@@ -47,7 +47,7 @@ _.extend(linkElement, {
 
     refreshLink: function(linkUrl) {
         this._container().text('');
-        if (linkUrl) {
+        if (linkUrl && linkUrl !== 'http://') {
             this._container().text('');
             this._container().attr('style', 'background-image: url(\'' + linkUrl + '\');');
         } else {