Socket
Socket
Sign inDemoInstall

quill-audio-format

Package Overview
Dependencies
30
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    quill-audio-format

A module for Quill rich text editor to add audio format and allow audio to be uploaded to a server.


Version published
Weekly downloads
0
Maintainers
1
Install size
1.21 MB
Created
Weekly downloads
 

Readme

Source

quill-audio-format

npm-image

A module for Quill rich text editor to add audio format and allow audio to be uploaded to a server.

Adds a button to the toolbar for users to click, also handles drag and dropped.

Preview

upload audio with drag and drop to quill editor

How to setup

import Quill from 'quill';
import AudioUploader from 'quill-audio-format';

Quill.register('modules/audioUploader', AudioUploader);

const mp3UrlForMockResponse =
  'https://cdn.realworld.to/project-files/tSJAUCsbD8aSDM7e8XN_AA/KFY6kUxGl8wPJF6EzchhEA-%E1%84%8B%E1%85%B5%E1%86%AF%E1%84%8B%E1%85%A5%E1%84%82%E1%85%A1%E1%84%89%E1%85%A7%E1%84%8B%E1%85%A3%E1%84%92%E1%85%A1%E1%86%B8%E1%84%82%E1%85%B5%E1%84%83%E1%85%A1.mp3';

const quill = new Quill('#editor-container', {
  modules: {
    toolbar: ['audio'],
    audioUploader: {
      upload: (file) =>
        new Promise((resolve, reject) => {
          setTimeout(() => resolve(mp3UrlForMockResponse), 2000);
        })
    }
  },
  theme: 'snow'
});

quill-audio-uploader is primarily distributed under the terms of the MIT license. See LICENSE for details.

This module was initial created by modifying the quill-image-uploader source code.

Keywords

FAQs

Last updated on 23 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc