kopia lustrzana https://gitlab.com/mysocialportal/relatica
Update copy text function to return plain text
rodzic
d2aca21f7b
commit
702173016f
|
@ -1,5 +1,14 @@
|
|||
# Relatica Change Log
|
||||
|
||||
## Unreleased Updates
|
||||
|
||||
* Changes
|
||||
* The "copy text" action now copies the plain text not HTML version. So things like hashtags show up as "#hashtag"
|
||||
not
|
||||
the HTML code around it with the link reference etc.
|
||||
* Fixes
|
||||
* New Features
|
||||
|
||||
## Version 0.4.0 (beta), 04 April 2023
|
||||
|
||||
* Changes
|
||||
|
|
|
@ -9,6 +9,7 @@ import '../../models/timeline_entry.dart';
|
|||
import '../../services/timeline_manager.dart';
|
||||
import '../../utils/active_profile_selector.dart';
|
||||
import '../../utils/clipboard_utils.dart';
|
||||
import '../../utils/html_to_edit_text_helper.dart';
|
||||
import '../../utils/url_opening_utils.dart';
|
||||
import '../media_attachment_viewer_control.dart';
|
||||
import '../padding.dart';
|
||||
|
@ -223,7 +224,7 @@ class _StatusControlState extends State<FlattenedTreeEntryControl> {
|
|||
case copyText:
|
||||
await copyToClipboard(
|
||||
context: context,
|
||||
text: item.timelineEntry.body,
|
||||
text: htmlToSimpleText(item.timelineEntry.body),
|
||||
message: 'Post link copied to clipboard',
|
||||
);
|
||||
break;
|
||||
|
|
Ładowanie…
Reference in New Issue