Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

froala-audio

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

froala-audio - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

13

froala-audio.js

@@ -187,4 +187,4 @@ 'use strict';

var addNewAudio = function addNewAudio(src, data) {
if (!data) data = {};
var addNewAudio = function addNewAudio(src, response) {
var data = parseResponse(response) || {};
var $audio = $('<span contenteditable="false" draggable="true" class="fr-audio fr-uploading">' + '<audio controls="controls" controlsList="nodownload"></audio>' + '</span>');

@@ -250,3 +250,3 @@ $audio.toggleClass('fr-draggable', editor.opts.audioMove);

var insertHtmlAudio = function insertHtmlAudio(link, data) {
var insertHtmlAudio = function insertHtmlAudio(link, response) {
editor.edit.on();

@@ -257,6 +257,6 @@ showProgressMessage('Loading audio');

var replace = !!currentAudio;
var $audio = replace ? replaceAudio(currentAudio, link) : addNewAudio(link, data);
var $audio = replace ? replaceAudio(currentAudio, link) : addNewAudio(link, response);
editor.undo.saveStep();
editor.events.trigger(replace ? 'audio.replaced' : 'audio.inserted', [$audio]);
editor.events.trigger(replace ? 'audio.replaced' : 'audio.inserted', [$audio, response]);
};

@@ -526,4 +526,3 @@

try {
var resp = parseResponse(responseText);
if (resp) insertHtmlAudio(resp.link, resp);
if (resp) insertHtmlAudio(resp.link, responseText);
} catch (ex) {

@@ -530,0 +529,0 @@ // Bad response.

{
"name": "froala-audio",
"description": "Plugin for inserting and modifying audio players with Froala WYSIWYG Editor.",
"version": "1.0.3",
"version": "1.0.4",
"main": "./froala-audio.js",

@@ -6,0 +6,0 @@ "repository": "https://github.com/ecoach-lms/froala-audio",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc