Commit Graph

9 Commits

Author SHA1 Message Date
Austin Chen
b81fb80f7b Simplify Manifold paste logic 2022-08-11 10:49:44 -07:00
Austin Chen
01b7edecb9 Remove unused import 2022-08-11 10:45:55 -07:00
Austin Chen
1aae6d6efe Support Manifold and Metaculus embeds 2022-08-11 10:44:29 -07:00
Austin Chen
f688d3c5d3 Use a single place to embed iframe, Youtube, and Tweets 2022-08-11 10:31:17 -07:00
Austin Chen
6423833ea4 Prevent tweetId from getting interpreted as a number 2022-08-10 18:06:33 -07:00
Austin Chen
82fe032cfb Embed a tweet by URL 2022-08-10 16:26:25 -07:00
Sinclair Chen
da977f62a9
Make added text go after img instead of replacing (#725) 2022-08-06 15:43:41 -07:00
Sinclair Chen
5892ccee97
Rich text in comments, fixed (#719)
* Revert "Revert "Switch comments/chat to rich text editor (#703)""

This reverts commit 33906adfe4.

* Fix typing after being weird on Android

Issue: character from mention gets deleted. Most weird on Swiftkey:
mention gets duplicated instead of deleting.

See https://github.com/ProseMirror/prosemirror/issues/565
https://bugs.chromium.org/p/chromium/issues/detail?id=612446

The keyboard still closes unexpectedly when you delete :(

* On reply, put space instead of \n after mention

* Remove image upload from placeholder text

- Redundant with image upload button
- Too long on mobile

* fix dependency
2022-08-06 13:39:52 -07:00
Sinclair Chen
6c89e5f18f
Add @ mentions to editor (#670)
* Add @ mentions to editor

* Fix mention list not loading

* Sort mention list by prefix, follow count

* Render at mention with Linkify component

- mentions are now Next <Link> rather than <a>
- fix bug where editor.getText() returns [object Object] for mentions
- fix mention rendering for posted markets
2022-07-23 20:37:34 -07:00