Skip to content

Commit

Permalink
mod_editor_tinymce: fix zmedia for Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Mar 2, 2017
1 parent 633c165 commit ccb4db7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ tinymce.PluginManager.requireLangPack('zmedia');
});

ed.on("click", function (o) {
var target = o.target || o.srcElement;
var target;

if (typeof o.srcElement !== 'undefined') {
target = o.srcElement;
} else {
target = o.target;
}
if (target.nodeName === "IMG") {
ed.execCommand("mceZotonicMedia", target);
}
Expand Down

0 comments on commit ccb4db7

Please sign in to comment.