publiclab / PublicLab.Editor

A general purpose, JS/Bootstrap UI framework for rich text posting. An author-friendly, minimal, mobile/desktop interface for creating blog-like content, designed for PublicLab.org
https://publiclab.github.io/PublicLab.Editor/examples/
GNU General Public License v3.0
80 stars 128 forks source link

Outreachy Proposal preparation features #754

Open jet2018 opened 3 years ago

jet2018 commented 3 years ago

Note: Am an outreachy applicant and these are some of the changes I would like to propose in my proposal but after acquiring your minds on them.

Suggested updates to the editor

Resetting the text-area and most probably the whole form Currently our editor has no option of resetting and clearing the fields, this would include also clearing all the markup and rich text from the input text area in case one has changed their mind or would want to start a fresh on what they were writing about. This can either be general by adding one button, once clicked, resets all form fields to empty but this would result into losing all fields' contents, so, each field can be cleared independently especially the textarea. On the editor, another node can be added to the current menu, to just trigger field clearing. The current one looks like below. image However a clear field #clear can be added preferably next to the #markdown. The major role of this is to reset the field back to empty again.

Reusing saved address When the user first signs up and log into the platform, they are asked to enter their address, I would suggest that the address on the editor should be available from the saved one. How?

When a user creates an account on https://publiclab.org/dashboard they are requested to provide access to their current address in form of long and lats, these can be saved(which is probably the case). And if it so, then instead of these fields below where one can just use their current location or add a new one as shown below image

I suggest prior checking if on the incoming user profile, there is some associated location coordinates, the area gets pre-selected and a use my saved location checkbox provided preferably below Blur my current location.

Also, if they didn't have any location coordinates before, and they provide new ones, an option of save as my location can also be made available replacing the above suggested use my saved location. On the next posting, the editor can always first check if there is any address on the incoming profile and auto select it on the map while auto checking the use my saved location. Unless the user explicitly changes it, it can be maintained.

welcome[bot] commented 3 years ago

Thanks for opening your first issue! This space is protected by our Code of Conduct - and we're here to help.
Please follow the issue template to help us help you 👍🎉😄
If you have screenshots or a gif to share demonstrating the issue, that's really helpful! 📸 Do join our Gitter channel for some brainstorming discussions.

jet2018 commented 3 years ago

@TildaDares can I start on the proposal as it seems I have less rejections here

ebarry commented 3 years ago

hi @jet2018, welcome! Thank you for posting a proposal 😄 I'm curious what you mean "less rejections here"?

jet2018 commented 3 years ago

I meant suggestions in the idea

jywarren commented 3 years ago

Hi @jet2018 i appreciate your brainstorming! I'm wondering, do you think adding an extra "clear" button is worth the extra space on the page, if it's also possible to just select all and press delete? And what if someone presses clear by mistake? I'm not completely against it, i just want to think through the pros and cons carefully.

As to the recently used locations, I believe we have that for adding location tags after a post is live:

image

I like the idea of adding this to the post page, if it can be subtle and not complicate the posting form. What is a visual idea or sketch for how this might look? Then if we like that, we could think about how to implement it.

Thanks again!

jet2018 commented 3 years ago

While working on the visual sketch, I still insist on that part of clearing the editor to come in, what if someone has written things that are huge, highlighting will really be consuming time, I faced the very problem while trying to play with the editor myself, so I decided to bring it on, I wrote content, which was even auto saving and could not clear it instantly, even the part of resetting the whole form should come in, maybe someone was writing about something and they would like to change the whole concept from the title, they can just press that button, in the form of forgiving, we can alert something just for them to be sure of what they are about to do!

Which tools may I use to bring out the visual concept on the map part

ebarry commented 2 years ago

Hi @jet2018 , just on the tools for layout, perhaps Inkscape https://inkscape.org/ or Glimpse https://glimpse-editor.org/