Javascript added Soundcloud embed says url is invalid. Via Redactor -


i'm working on plugin converts soundcloud urls embeds in wysiwyg editor redactor. working 1 exception. if first thing in editor paste soundcloud url , press enter, result in error of:

url parameter not valid soundcloud url. learn more using soundcloud embeds.

if paste same soundcloud url , press enter, embed work fine. upon inspecting html, urls identical, i'm not sure causing issue. work if load page, press enter, paste in soundcloud url, , press enter.

i'm not sure if redactor issue or soundcloud issue or if i've done incorrect. advice appreciated. thanks!

my current demo: http://caseybritt.com/_tmp/redactor-sc/

redactor uses 0 width spaces you'll need strip off matches before constructing url soundcloud embed.

matches[2].replace(/u200b/g, '') 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -