Open JonathanJvs opened 1 month ago
I reproduce, i tested my proxy which return truly html but I don't know why sucess callback return only a json like {video: "url-of-video"}
EDIT: i just found the problem the case only append when a plugins.noembed.sucessCallback is provided,
L.122 you send data (data request) instead of response
When we get an request with the proxy, the returned just the url in data, not the html and others elements in the preview of response.
Proposition:
`function (data) { // Build request URL var requestUrl = new URL(trumbowyg.o.plugins.noembed.proxy); Object.keys(data).forEach((key) => { requestUrl.searchParams.append(key, data[key].trim()); });