Using Bower:
bower install ckeditor-audio-plugin
Using composer asset plugin:
composer require bower-asset/ckeditor-audio-plugin
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"
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