gravitystorm left a comment (openstreetmap/openstreetmap-website#6635)

A dropdown would be nice, but it's not a strict prerequisite for using 
ActionText Attachments in the stored text. Whichever raw text parsing we're 
doing at display time (e.g. regexps) could instead be done on preview/save, 
creating the attachment refs in the database. More complex UI can come later 
but at least we'd be moving to a more solid data foundation than we have now.

> requires that you have a proper rich text editor that is able to generate 
> attachment references using some user friendly user interface which is of 
> course exactly what ActionText does with it's trix editor I assume.

I know that ActionText is becoming more plugable with its front ends, for 
example 37Signals has an alternative to Trixie ([called 
Lexxy](https://github.com/basecamp/lexxy/)) under development. I haven't looked 
into the details to see if we're better off moving towards one of these or 
making our own thing which just does the individual features that we need.

> How would this work with third party apps that are consuming changeset 
> comments via API?

I would expect any references stored server-side to be rendered appropriately, 
whether shown either as html on the site or as api text. For example, the site 
might include a hover-card (like when you hover over a name here on github) but 
the API would probably just have the attachment rendered to an html link around 
the username.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6635#issuecomment-3686129066
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/issues/6635/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to