Skip to content

dougti/ckeditor-audio-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Ckeditor html5 audio plugin

Installation

1. Copy plugin to your project in any convenient way

Using Bower:

bower install ckeditor-audio-plugin

Using composer asset plugin:

composer require bower-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

About

plugin for CKEditor to insert html5 audio tag

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%