Compare commits

...

3 Commits

Author SHA1 Message Date
Jonas 15bbc841e6
Merge 537964ee8b into c2e61304c1 2024-11-30 19:06:16 +00:00
Jonas 537964ee8b
Merge branch 'master' into fix/copy-as-plaintext 2024-11-19 12:42:30 +01:00
brtbr d63c4dbba3 fix: copy to clipboard as plain/text
The default behavior for CopyToClipboard is to choose the output format
text/html. This causes issues when pasting into HTML messages in
Thunderbird. Therefore this commit changes the output format to
text/plain which seems to solve the issue.
2024-06-01 23:16:41 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ const EditRoomDialog: React.FC<Props> = ({ room, restriction, updateProperty, op
return <option key={key} value={key}>{label}</option>;
})}
</select>
{(value === Access.Password && room.password) && <CopyToClipboard text={room.password}><input type="text" readOnly={true} className="icon-clippy" value={room.password} /></CopyToClipboard>}
{(value === Access.Password && room.password) && <CopyToClipboard text={room.password} options={{format:'text/plain'}}><input type="text" readOnly={true} className="icon-clippy" value={room.password} /></CopyToClipboard>}
{descriptions[field] && <em>{descriptions[field]}</em>}
</div>
);

View File

@ -35,7 +35,7 @@ const RecordingRow: React.FC<Props> = ({recording, isAdmin, deleteRecording, sto
</a>
</td>
<td className="share icon-col">
<CopyToClipboard text={recording.url}>
<CopyToClipboard text={recording.url} options={{format:'text/plain'}}>
<button className="action-item copy-to-clipboard" title={t('bbb', 'Copy to clipboard')}>
<span className="icon icon-clippy icon-visible" ></span>
</button>

View File

@ -230,7 +230,7 @@ const RoomRow: React.FC<Props> = (props) => {
</a>
</td>
<td className="share icon-col">
<CopyToClipboard text={api.getRoomUrl(room)}>
<CopyToClipboard text={api.getRoomUrl(room)} options={{format:'text/plain'}}>
<button className="action-item copy-to-clipboard" title={t('bbb', 'Copy to clipboard')}>
<span className="icon icon-clippy icon-visible" ></span>
</button>