Is it possible to insert a GIF via the Office.js API?

I’m attempting to insert a GIF from my side panel add-in into the main PowerPoint document via the Office object as follows: Office.context.document.setSelectedDataAsync( b64, { coercionType: Office.CoercionType.Image }, result => { if (result.status === Office.AsyncResultStatus.Failed) { console.error(result.error.message); } } ); But this results in a broken image being inserted into the document and not the…

Details

checkValidity / reportVality not working for values set via code

The HTML5 checkValidity() / reportValidity() methods don’t seem to work if values are set via JavaScript. Consider this example (JSFiddle): <input id=”text-field” maxlength=”3″ placeholder=”Max len: 3 chars” /> <button id=”set-field-value”>Set</button> <button id=”check-valid”>Is valid?</button> <script> window.onload = function() { var textField = document.getElementById(‘text-field’); document.getElementById(‘set-field-value’).onclick = function() { textField.value = ‘This is a very looooooooooooooooooooooooooooooong text’; };…

Details