TinyMCE "Insert Media" screen, update button triggers navigation (fixes #742)

This commit is contained in:
Ingo Schommer 2013-06-13 09:29:55 +02:00
parent 5a94e621c5
commit 385f364018

View File

@ -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 $('<div>').append(
$('<a/>').attr({href: this.data('url')}).text(this.find('.name').text())
).html();
},
/**
* Insert updated HTML content into the rich text editor