Add editorInsertLinkedMedia erase by error
This commit is contained in:
parent
221f6ede2d
commit
0d08f37477
1 changed files with 5 additions and 0 deletions
|
@ -458,6 +458,11 @@ $(document).ready(function() {
|
|||
$("#jseditor").val($('#jseditor').val()+'<img src="'+filename+'" alt="">');
|
||||
};
|
||||
}
|
||||
if (typeof editorInsertLinkedMedia != "function") {
|
||||
window.editorInsertLinkedMedia = function(filename, link){
|
||||
$("#jseditor").val($('#jseditor').val()+'<a href="'+link+'"><img src="'+filename+'" alt=""></a>');
|
||||
};
|
||||
}
|
||||
|
||||
// Button switch
|
||||
$("#jsbuttonSwitch").on("click", function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue