Skip to content

Reading %clipboard% not working with "text/plain" content #264

Closed

Description

@RealRaven2000

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:

%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.

Activity

  1. self-assigned this
    on Oct 8, 2023
  2. added a commit that references this issue on Oct 8, 2023
  3. RealRaven2000 commented on Oct 16, 2023

    @RealRaven2000
    OwnerAuthor

    Implemented in 4.3.1 - published 16/10/2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions