Closed RealRaven2000 closed 11 months ago
Reading the clipboard can fail when it was filled from a non-unicode html file. I assume that it only worked for me before because I stored my html files as unicode and thus calling %toClipboard()% created "text/unicode" data flavor.
%toClipboard()%
"text/unicode"
Calling template:
%toclipboard("quickFilters")% <div class="announcement"> <h2>Latest News</h2> %file("../news-on-tb+addon.html")% </div>
included template news-on-tb+addon.html:
<p> The Thunderbird Add-on <span class="productName">%clipboard%</span> is now compatible with the latest version of Thunderbird (115.0). </p> ....
The string was copied to the clipboard by %toclipboard(..)% but couldn't be read by the included template file because of its format.
Implemented in 4.3.1 - published 16/10/2023
Reading the clipboard can fail when it was filled from a non-unicode html file. I assume that it only worked for me before because I stored my html files as unicode and thus calling
%toClipboard()%
created"text/unicode"
data flavor.Calling template:
included template news-on-tb+addon.html:
The string was copied to the clipboard by %toclipboard(..)% but couldn't be read by the included template file because of its format.