Add editorInsertLinkedMedia erased by error
This commit is contained in:
parent
9c31a8df22
commit
221f6ede2d
1 changed files with 5 additions and 0 deletions
|
@ -502,6 +502,11 @@ $(document).ready(function() {
|
||||||
$("#jseditor").val($('#jseditor').val()+'<img src="'+filename+'" alt="">');
|
$("#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
|
// Button switch
|
||||||
$("#jsswitchButton").on("click", function() {
|
$("#jsswitchButton").on("click", function() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue