Coder Social home page Coder Social logo

Comments (16)

irmerk avatar irmerk commented on June 12, 2024

Moved to markdown-editor, relates to accordproject/markdown-editor#293

from web-components.

irmerk avatar irmerk commented on June 12, 2024

@Michael-Grover any thoughts on this?

From @dselman:

Because images are just specialized links in Markdown, perhaps we can also use for to edit images?

from web-components.

Michael-Grover avatar Michael-Grover commented on June 12, 2024

accordproject/markdown-editor#293 @dselman there is a custom dialogue for links here

Because images are just specialized links in Markdown, perhaps we can also use for to edit images?

if someone wants to edit an image wouldn't they just delete it and add a new one?

from web-components.

irmerk avatar irmerk commented on June 12, 2024

Relates to #29

from web-components.

K-Kumar-01 avatar K-Kumar-01 commented on June 12, 2024

@dselman
Keeping the perspective of the image, does it mean that when an image is clicked a popup similar to hyperlink should open up with a field to edit the image URL?

from web-components.

irmerk avatar irmerk commented on June 12, 2024

@K-Kumar-01 yes I think that's the right idea.

from web-components.

K-Kumar-01 avatar K-Kumar-01 commented on June 12, 2024

@irmerk @dselman
I have created a PR for the issue. Let me know if there are any changes required.

from web-components.

irmerk avatar irmerk commented on June 12, 2024

@Michael-Grover so my interpretation is that this might not be a good feature for images?

from web-components.

Michael-Grover avatar Michael-Grover commented on June 12, 2024

@Michael-Grover

if someone wants to edit an image wouldn't they just delete it and add a new one?

@irmerk

so my interpretation is that this might not be a good feature for images?

I'm just not clear on what the utility of this feature is. Is being able to edit the image URL the standard functionality in editors like this (built on markdown but don't let users edit the markdown directly)? It feels like adding complexity to the UI for no additional utility. @dselman since you opened this issue, what do you think?

It seems simpler to just click on an image, press backspace, then add a new one. Also, when a user uses cmv+v to paste an image, what does should the URL become in the pop up?

from web-components.

dselman avatar dselman commented on June 12, 2024

I guess I was influenced by the similarity between links and images in the markdown spec. I think there is some precedent for this sort of thing. E.g. in elev.io you can click on an image, select "replace" and then the "by url" button. Fairly sure I've seen it elsewhere as well, but I'll defer to you on utility/design.

I'd also love to get rid of the system prompt displayed when the user presses the "insert image" toolbar button.

from web-components.

Michael-Grover avatar Michael-Grover commented on June 12, 2024

@dselman what's a situation where someone might want to change the URL of an image? I don't actually understand how someone would use the existing functionality where they have to enter a URL to add an image. Where are they getting the URL from? in editors like this, I thought that people usually upload files from their computer or paste images. I just haven't seen entering a URL as a method for adding an image in editors, so I'm having trouble envisioning how users would use the existing functionality, and how it can be improved.

from web-components.

Michael-Grover avatar Michael-Grover commented on June 12, 2024

I think having a pop up appear when clicking an image makes it harder to delete the image, use the keyboard to navigate past the image, and use the cursor to drag and drop an image to a different part of the editor.

from web-components.

K-Kumar-01 avatar K-Kumar-01 commented on June 12, 2024

I think having a pop up appear when clicking an image makes it harder to delete the image, use the keyboard to navigate past the image, and use the cursor to drag and drop an image to a different part of the editor.

@Michael-Grover
I can add a delete button in the popup itself that will make it easier. However, that completely depends on whether we want to use this feature or not.
Navigating the image using the keyboard can also be fixed.
Using the cursor to drag and drop image might be tricky.

from web-components.

K-Kumar-01 avatar K-Kumar-01 commented on June 12, 2024

@dselman @Michael-Grover @irmerk
I also noticed that dragging and dropping images doesn't add an image to the markdown editor. So that might be a feature that we can work on?

from web-components.

Michael-Grover avatar Michael-Grover commented on June 12, 2024

@dselman and I discussed pop up dialogues to edit images and decided that it's not necessary, however we should allow users who extend this component to choose what they want to happen when a user clicks on the image. I think this means having an event happen upon clicking an image, @dselman is that right? Is there any additional context you can add?

from web-components.

K-Kumar-01 avatar K-Kumar-01 commented on June 12, 2024

@dselman
Waiting for your response.

from web-components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.