Very nice adddon
But the copy functionality in not working for IOS devices.
Might be related: https://stackoverflow.com/a/34046084/3608089
I made changes on copy function of clipboard-helper.js file and it is working perfect now.
copy() {
const el = document.createElement('textarea');
el.value = this.content;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
el.select();
el.setSelectionRange(0, 99999); /*For mobile devices*/
var oldContentEditable = el.contentEditable,
oldReadOnly = el.readOnly,
range = document.createRange();
el.contentEditable = true;
el.readOnly = false;
range.selectNodeContents(el);
var s = window.getSelection();
s.removeAllRanges();
s.addRange(range);
el.setSelectionRange(0, 999999); // A big number, to cover anything that could be inside the element.
el.contentEditable = oldContentEditable;
el.readOnly = oldReadOnly;
document.execCommand("copy");
document.body.removeChild(el);
}
Interesting! I’ll have to see if that can be used in the add-on as is.