1.0.0 • Published 4 years ago

ckeditor-audio-plugin v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Ckeditor html5 audio plugin

Installation

1. Copy plugin to your project in any convenient way

Using Npm:

npm install ckeditor-audio-plugin

Using composer asset plugin:

composer require npm-asset/ckeditor-audio-plugin

2. Configure Ckeditor

CKEDITOR.plugins.addExternal("audio", "assets/vendor/ckeditor-audio-plugin/audio/plugin.js");

Optional: You can use default browser for browsing server files

filebrowserBrowseUrl: "{{ admin.generateUrl('browse', {'type': 'image'}) }}"

or custom

filebrowserAudioBrowseUrl: "/browse/audio"

(or other installation path)

Inside config:

extraPlugins: "...,audio"

About

This is only an adaptation of Video plugin for CKEditor created by Alfonso Martínez de Lizarrondo

Originally forked from https://github.com/Philalawst/cke_audio

###List of improvements

#####by aemr3

  • Added autoplay/loop/controls options
  • Changed default audio formats to mp3/wav
  • Removed div around audio tags. (Causes some trouble)

#####by harentius

  • Added plugin button to 'insert' group, stylized for Ckeditor 4
  • Removed redundant second upload field
  • Improved this readme
  • Added file upload tab