Sha256: 079a998fdb044a6a31e5aa65ace77ce4f132869c874f85c164286762c3d1a8f3
Contents?: true
Size: 787 Bytes
Versions: 14
Compression:
Stored size: 787 Bytes
Contents
$(document).ready(function(){ $('textarea').each(function(i, elem) { $(elem).wysihtml5({ html: true, locale: "nl-NL", "events": { "load": function() { editor = $('#insertable').data("wysihtml5").editor; editor.focus(); } } }); }); $(".insert_image").live("click", function(e){ e.preventDefault(); console.log($(this).data("insertImage")); editor.composer.commands.exec("insertImage", { src: $(this).data("insertImage") }); }); $(".insert_link").live("click", function(e){ e.preventDefault(); console.log($(this).data()); editor.composer.commands.exec("createLink", { href: $(this).data("insertUrl"), target: "_blank", rel: "nofollow", text: $(this).data("insertName") }); }); });
Version data entries
14 entries across 14 versions & 1 rubygems