
Ok this is driving me crazy, I'm on the dev server by the way if it matters.
Sending a div in API with /w works great (not sure when they changed it long ago it didn't, but it works now)
I'm trying to send one with an image as the BG and its not working
Here is a test script as basic as I can give an example:
It sends the div with an image as /direct and /w. the direct works
BUT
It also sends a div with color BG, and it works for both /direct AND /w
http://i.imgur.com/fXkgooH.jpg
The only difference is I change background-color:#70D16D; to background-image: url(http://tutorials-cdn.pixelmator.com/gradient-tool/top.jpg);
Is this a bug i should report in the bug section? or is being able to send partially working html at all with /w an 'unintended feature' and I should consider being able to do it at all a bonus? :)
Sending a div in API with /w works great (not sure when they changed it long ago it didn't, but it works now)
I'm trying to send one with an image as the BG and its not working
Here is a test script as basic as I can give an example:
It sends the div with an image as /direct and /w. the direct works
BUT
It also sends a div with color BG, and it works for both /direct AND /w
on("chat:message", function (msg) { if(msg.type == "api" && msg.content.indexOf("!test") !== -1) { //---test image var image = "<div style='background-image: url(http://tutorials-cdn.pixelmator.com/gradient-tool/top.jpg); border: 1px solid #000; border-radius: 8px 8px 8px 8px;'>TEST</div>"; sendChat("test image direct", "/direct " + image); sendChat("test image whisper", "/w gm " + image); //---test color var color = "<div style='background-color:#70D16D; border: 1px solid #000; border-radius: 8px 8px 8px 8px;'>TEST</div>"; sendChat("test color direct", "/direct " + color); sendChat("test color whisper", "/w gm " + color); }; });This results is this, notice the second one using an image and /w results in it totally breaking:
http://i.imgur.com/fXkgooH.jpg
The only difference is I change background-color:#70D16D; to background-image: url(http://tutorials-cdn.pixelmator.com/gradient-tool/top.jpg);
Is this a bug i should report in the bug section? or is being able to send partially working html at all with /w an 'unintended feature' and I should consider being able to do it at all a bonus? :)