Open baka-kaba opened 10 years ago
So the "plain" editor stuff is included now - there's a BBcode menu that acts on any selected text/the current cursor position/the clipboard as appropriate. A WYSIWYG editor would be nice but also a lot of work.
I think it would be good to have a separate attachment component that's added if the user is allowed to use attachments, maybe displayed under the message field, where you can tap to add an attachment, see a little thumbnail preview and discard it if you want. It could handle displaying error messages too, like when the image is too big. The Imgur uploader already does a bunch of this stuff, so a lot could be copied from there. I reckon it would look a little neater and more discoverable than the menu version? Plus it might help to break up the layout a little, right now it's sort of a big empty space to type in
This stuff should all be as composable as possible I think, just so it can be used in posts and private messages and (maybe) threads - they're all the same thing really, they just send to different URLs and maybe have some extra options (like a message title). It would be real nice if you could make a ThreadCreatorFragment or whatever by throwing together a MessageComposer, an AttachmentThing, a TitleWidget, an IconPicker and a PollMachine and just get all the current stuff out of them when the user hits Submit
There's a lot that could be done with this I guess, my biggest issue personally is with using BBCode - it's hard work trying to get the cursor in place between a pair of tags (say to paste something), and with video tags you need to basically remember which part of the URL is meant to go where, and edit it down. A lot of the time I just type the tags myself.
Some kind of editing tools would be nice, either a kind of rich text mode that handles the tags behind the scenes (and lets you switch to plain text if you need to), or just more features for the plain editor: applying tags around a selection, inserting a video or a link bringing up a nice dialog with URL and TEXT fields like in Gmail, that kind of thing.
As a related idea, it would be nice for Awful to catch Share intents for things like links and videos, and cache them for later use. Then when you're composing a post, you could open your stash and click to insert them in the text. You could get flashier and cache thumbnails and have them in a sliding drawer! But anything that helps phone effort posting would be nice