diff --git a/javascript/HtmlEditorField.js b/javascript/HtmlEditorField.js index b12d6f0f8..3b2e5cf74 100644 --- a/javascript/HtmlEditorField.js +++ b/javascript/HtmlEditorField.js @@ -1004,6 +1004,10 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE; * @return {String} HTML suitable for insertion into the rich text editor */ getHTML: function() { + // Assumes UploadField markup structure + return $('
').append( + $('').attr({href: this.data('url')}).text(this.find('.name').text()) + ).html(); }, /** * Insert updated HTML content into the rich text editor