/*/* =========================================================== * trumbowyg.insertaudio.js v1.0 * InsertAudio plugin for Trumbowyg * http://alex-d.github.com/Trumbowyg * =========================================================== * Author : Adam Hess (AdamHess) */ (function ($) { 'use strict'; var insertAudioOptions = { src: { label: 'URL', required: true }, autoplay: { label: 'AutoPlay', required: false, type: 'checkbox' }, muted: { label: 'Muted', required: false, type: 'checkbox' }, preload: { label: 'preload options', required: false } }; $.extend(true, $.trumbowyg, { langs: { // jshint camelcase:false en: { insertAudio: 'Insert Audio' }, da: { insertAudio: 'Indsæt lyd' }, fr: { insertAudio: 'Insérer un son' }, ru: { insertAudio: 'Вставить аудио' }, ja: { insertAudio: '音声の挿入' }, tr: { insertAudio: 'Ses Ekle' }, pt_br: { insertAudio: 'Inserir áudio' }, ko: { insertAudio: '소리 넣기' }, // jshint camelcase:true }, plugins: { insertAudio: { init: function (trumbowyg) { var btnDef = { fn: function () { var insertAudioCallback = function (v) { // controls should always be show otherwise the audio will // be invisible defeating the point of a wysiwyg var html = '