X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/443df0e0784763b93184fc5c1cdb8f2aae40e1d6..6b06b64b40cd570ab02227cc913a5204d9562f37:/src/editor/plugins/core/img/imgElement.js diff --git a/src/editor/plugins/core/img/imgElement.js b/src/editor/plugins/core/img/imgElement.js index 5aaecfc..ff3dad3 100644 --- a/src/editor/plugins/core/img/imgElement.js +++ b/src/editor/plugins/core/img/imgElement.js @@ -47,7 +47,12 @@ _.extend(linkElement, { refreshLink: function(linkUrl) { this._container().text(''); - this._container().attr('style', 'background-image: url(\'' + linkUrl + '\');'); + if (linkUrl && linkUrl !== 'http://') { + 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) {