Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to paste copied formatted text #6842

Closed
agilob opened this issue Jun 5, 2018 · 1 comment
Closed

Unable to paste copied formatted text #6842

agilob opened this issue Jun 5, 2018 · 1 comment

Comments

@agilob
Copy link

agilob commented Jun 5, 2018

Description

Copy text from facebook post or other source where the whole text is a link. Pressing CTRL+V in text input area results with the following exception being printed in console each time paste combination is pressed.

Version information

  • Platform: web (in-browser)

For the web app:

  • Browser: Firefox 60.0.1
  • OS: Ubuntu, Arch Linux both
  • URL: riot.im/app

https://gfycat.com/EnchantedFatalBlueshark

In the video you can see I copied text from wykop.pl, the text is a link. I tried to paste it several times into the chat input but it didnt work. I pasted the text into search box in Firefox, copied it again (removes text formatting, html etc.) and pasted it again to chat input.

Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.
invariant.js:38
r
invariant.js:38
D</t.prototype.getEntity
ContentState.js:149
value/<
MessageComposerInput.js:197:24
n/<
findRangesImmutable.js:31
reduce/<
immutable.js:4411
Ue.prototype.__iterate
immutable.js:2194
reduce
immutable.js:4406
n
findRangesImmutable.js:29
_</t.prototype.findEntityRanges
ContentBlock.js:106
value
MessageComposerInput.js:191:8
value self-hosted:980:17 u</e.prototype.getDecorations/<
CompositeDraftDecorator.js:70
forEach self-hosted:261:13 u</e.prototype.getDecorations
CompositeDraftDecorator.js:58
generate
BlockTree.js:61
a/<
EditorState.js:478
lt/r.__iterateUncached/<
immutable.js:3004:28
ct/o.__iterateUncached/<
immutable.js:3074
rt.prototype.__iterate/<
immutable.js:2820:27
Ze.prototype.__iterate/<
immutable.js:2687:26
Ue.prototype.__iterate
immutable.js:2194
Ze.prototype.__iterate
immutable.js:2686
rt.prototype.__iterate
immutable.js:2818
ct/o.__iterateUncached
immutable.js:3071
V
immutable.js:606
R.prototype.__iterate
immutable.js:276
lt/r.__iterateUncached
immutable.js:3003
V
immutable.js:606
R.prototype.__iterate
immutable.js:276
forEach
immutable.js:4374
Ae/<
immutable.js:1949
fe.prototype.withMutations
immutable.js:1341
Ae
immutable.js:1938
Ie
immutable.js:1911
fe.prototype.merge
immutable.js:1292
a
EditorState.js:475
w</e.set/r<
EditorState.js:108
fe.prototype.withMutations
immutable.js:1341
w</e.set
EditorState.js:78
w</e.push
EditorState.js:349
value
MessageComposerInput.js:682:29
value self-hosted:980:17 r
editOnPaste.js:75
N</t.prototype._buildHandler/<
DraftEditor.react.js:146
r
ReactErrorUtils.js:24
a
EventPluginUtils.js:83
s
EventPluginUtils.js:106
p
EventPluginHub.js:41
h
EventPluginHub.js:52
forEach self-hosted:261:13 n
forEachAccumulated.js:22
processEventQueue
EventPluginHub.js:252
r
ReactEventEmitterMixin.js:15
handleTopLevel
ReactEventEmitterMixin.js:25
i
ReactEventListener.js:70
perform
Transaction.js:141
batchedUpdates
ReactDefaultBatchingStrategy.js:60
i
ReactUpdates.js:95
dispatchEvent
ReactEventListener.js:145
dispatchEvent
@t3chguy
Copy link
Member

t3chguy commented Jun 5, 2018

Duplicate of #4962

@t3chguy t3chguy marked this as a duplicate of #4962 Jun 5, 2018
@t3chguy t3chguy closed this as completed Jun 5, 2018
BBaoVanC added a commit to boba-best/element.boba.best that referenced this issue Oct 11, 2021
* Decrease profile button touch target ([\element-hq#6900](matrix-org/matrix-react-sdk#6900)). Contributed by [ColonisationCaptain](https://github.com/ColonisationCaptain).
* Don't let click events propagate out of context menus ([\element-hq#6892](matrix-org/matrix-react-sdk#6892)).
* Allow closing Dropdown via its chevron ([\element-hq#6885](matrix-org/matrix-react-sdk#6885)). Fixes element-hq#19030 and element-hq#19030.
* Improve AUX panel behaviour ([\element-hq#6699](matrix-org/matrix-react-sdk#6699)). Fixes element-hq#18787 and element-hq#18787. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
* A nicer opening animation for the Image View ([\#6454](matrix-org/matrix-react-sdk#6454)). Fixes element-hq#18186 and element-hq#18186. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
* [Release] Fix space hierarchy pagination ([\element-hq#6910](matrix-org/matrix-react-sdk#6910)).
* Fix leaving space via other client leaving you in undefined-land ([\element-hq#6891](matrix-org/matrix-react-sdk#6891)). Fixes element-hq#18455 and element-hq#18455.
* Handle newer voice message encrypted event format for chat export ([\element-hq#6893](matrix-org/matrix-react-sdk#6893)). Contributed by [jaiwanth-v](https://github.com/jaiwanth-v).
* Fix pagination when filtering space hierarchy ([\element-hq#6876](matrix-org/matrix-react-sdk#6876)). Fixes element-hq#19235 and element-hq#19235.
* Fix spaces null-guard breaking the dispatcher settings watching ([\element-hq#6886](matrix-org/matrix-react-sdk#6886)). Fixes element-hq#19223 and element-hq#19223.
* Fix space children without specific `order` being sorted after those with one ([\element-hq#6878](matrix-org/matrix-react-sdk#6878)). Fixes element-hq#19192 and element-hq#19192.
* Ensure that sub-spaces aren't considered for notification badges ([\element-hq#6881](matrix-org/matrix-react-sdk#6881)). Fixes element-hq#18975 and element-hq#18975.
* Fix timeline autoscroll with non-standard DPI settings. ([\element-hq#6880](matrix-org/matrix-react-sdk#6880)). Fixes element-hq#18984 and element-hq#18984.
* Pluck out JoinRuleSettings styles so they apply in space settings too ([\element-hq#6879](matrix-org/matrix-react-sdk#6879)). Fixes element-hq#19164 and element-hq#19164.
* Null guard around the matrixClient in SpaceStore ([\element-hq#6874](matrix-org/matrix-react-sdk#6874)).
* Fix issue (https ([\element-hq#6871](matrix-org/matrix-react-sdk#6871)). Fixes element-hq#19138 and element-hq#19138. Contributed by [psrpinto](https://github.com/psrpinto).
* Fix pills being cut off in message bubble layout ([\element-hq#6865](matrix-org/matrix-react-sdk#6865)). Fixes element-hq#18627 and element-hq#18627. Contributed by [robintown](https://github.com/robintown).
* Fix space admin check false positive on multiple admins ([\element-hq#6824](matrix-org/matrix-react-sdk#6824)).
* Fix the User View ([\element-hq#6860](matrix-org/matrix-react-sdk#6860)). Fixes element-hq#19158 and element-hq#19158.
* Fix spacing for message composer buttons ([\element-hq#6852](matrix-org/matrix-react-sdk#6852)). Fixes element-hq#18999 and element-hq#18999.
* Always show root event of a thread in room's timeline ([\element-hq#6842](matrix-org/matrix-react-sdk#6842)). Fixes element-hq#19016 and element-hq#19016.
williamkray added a commit to williamkray/element-web that referenced this issue Nov 9, 2021
* Decrease profile button touch target ([\element-hq#6900](matrix-org/matrix-react-sdk#6900)). Contributed by [ColonisationCaptain](https://github.com/ColonisationCaptain).
* Don't let click events propagate out of context menus ([\element-hq#6892](matrix-org/matrix-react-sdk#6892)).
* Allow closing Dropdown via its chevron ([\element-hq#6885](matrix-org/matrix-react-sdk#6885)). Fixes element-hq#19030 and element-hq#19030.
* Improve AUX panel behaviour ([\element-hq#6699](matrix-org/matrix-react-sdk#6699)). Fixes element-hq#18787 and element-hq#18787. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
* A nicer opening animation for the Image View ([\#6454](matrix-org/matrix-react-sdk#6454)). Fixes element-hq#18186 and element-hq#18186. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
* [Release] Fix space hierarchy pagination ([\element-hq#6910](matrix-org/matrix-react-sdk#6910)).
* Fix leaving space via other client leaving you in undefined-land ([\element-hq#6891](matrix-org/matrix-react-sdk#6891)). Fixes element-hq#18455 and element-hq#18455.
* Handle newer voice message encrypted event format for chat export ([\element-hq#6893](matrix-org/matrix-react-sdk#6893)). Contributed by [jaiwanth-v](https://github.com/jaiwanth-v).
* Fix pagination when filtering space hierarchy ([\element-hq#6876](matrix-org/matrix-react-sdk#6876)). Fixes element-hq#19235 and element-hq#19235.
* Fix spaces null-guard breaking the dispatcher settings watching ([\element-hq#6886](matrix-org/matrix-react-sdk#6886)). Fixes element-hq#19223 and element-hq#19223.
* Fix space children without specific `order` being sorted after those with one ([\element-hq#6878](matrix-org/matrix-react-sdk#6878)). Fixes element-hq#19192 and element-hq#19192.
* Ensure that sub-spaces aren't considered for notification badges ([\element-hq#6881](matrix-org/matrix-react-sdk#6881)). Fixes element-hq#18975 and element-hq#18975.
* Fix timeline autoscroll with non-standard DPI settings. ([\element-hq#6880](matrix-org/matrix-react-sdk#6880)). Fixes element-hq#18984 and element-hq#18984.
* Pluck out JoinRuleSettings styles so they apply in space settings too ([\element-hq#6879](matrix-org/matrix-react-sdk#6879)). Fixes element-hq#19164 and element-hq#19164.
* Null guard around the matrixClient in SpaceStore ([\element-hq#6874](matrix-org/matrix-react-sdk#6874)).
* Fix issue (https ([\element-hq#6871](matrix-org/matrix-react-sdk#6871)). Fixes element-hq#19138 and element-hq#19138. Contributed by [psrpinto](https://github.com/psrpinto).
* Fix pills being cut off in message bubble layout ([\element-hq#6865](matrix-org/matrix-react-sdk#6865)). Fixes element-hq#18627 and element-hq#18627. Contributed by [robintown](https://github.com/robintown).
* Fix space admin check false positive on multiple admins ([\element-hq#6824](matrix-org/matrix-react-sdk#6824)).
* Fix the User View ([\element-hq#6860](matrix-org/matrix-react-sdk#6860)). Fixes element-hq#19158 and element-hq#19158.
* Fix spacing for message composer buttons ([\element-hq#6852](matrix-org/matrix-react-sdk#6852)). Fixes element-hq#18999 and element-hq#18999.
* Always show root event of a thread in room's timeline ([\element-hq#6842](matrix-org/matrix-react-sdk#6842)). Fixes element-hq#19016 and element-hq#19016.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants