Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't add audio or video from mediamanager #89

Open
Sennevds opened this issue Nov 6, 2016 · 0 comments
Open

can't add audio or video from mediamanager #89

Sennevds opened this issue Nov 6, 2016 · 0 comments

Comments

@Sennevds
Copy link

Sennevds commented Nov 6, 2016

I saw that you don't support audio and video from mediamanager.
I've tried to add the feature by editing the ocmediamanager plugin like this:
for (var i=0, len=items.length; i<len; i++) { if (items[i].documentType == 'audio') { editor.insertHtml('<audio src="' + items[i].publicUrl + '"controls />'); } else if (items[i].documentType == 'image') { editor.insertHtml('<img src="' + items[i].publicUrl + '" />', 'unfiltered_html'); } else { alert('The file "'+items[i].title+'" is not an image.') continue }
but still I don't get any audio file. i've tried adding following line to the config:
CKEDITOR.config.extraAllowedContent = 'audio';
but then i get following  
can you help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant