oc-wysiwyg-editors icon indicating copy to clipboard operation
oc-wysiwyg-editors copied to clipboard

can't add audio or video from mediamanager

Open Sennevds opened this issue 8 years ago • 0 comments

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

Sennevds avatar Nov 06 '16 14:11 Sennevds