Prompts to add video/image
[fnpeditor.git] / src / editor / plugins / core / img / imgElement.js
index 5aaecfc..ae0e081 100644 (file)
@@ -47,7 +47,12 @@ _.extend(linkElement, {
 
     refreshLink: function(linkUrl) {
         this._container().text('');
-        this._container().attr('style', 'background-image: url(\'' + linkUrl + '\');');
+        if (linkUrl) {
+            this._container().text('');
+            this._container().attr('style', 'background-image: url(\'' + linkUrl + '\');');
+        } else {
+            this._container().text(gettext('No image. Click here to add image'));
+        }
     },
 
     changeLink: function(e) {