mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
TinyMCE "Insert Media" screen, update button triggers navigation (fixes #742)
This commit is contained in:
parent
5a94e621c5
commit
385f364018
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user