-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EssenceText with linkable: true to optionally reference Attachment #2096
Comments
A |
🤦 Right! I got confused it. It does everything I need. Sorry for bothering. Since we are talking about it... 😛 I think the Currently, the URL path to the file is shown but I think in many cases this is not great because the filename gets cut off due to limited space. I believe the editor usually doesn't care about the path, but the filename. The I think the editor could benefit more if it shows
What is your opinion on that? |
Linking a file is only one of the links you can put into a Most of the features you miss are present on the The Link essence is mainly used for URLs, that's why the url is presented as the preview. I would not want to change that just for the rare use case of linking to a file. |
Yeah, thats right. It is an edge case. I haven't thought about it carefully enough, I suppose. I am closing this now. Sorry, again. |
I am afraid there seem to be a misunderstanding. I got confused in a cascading way and didn't even notice 😆 @tvdeyen I'll try express again with other words. I hope this makes it better understandable.
I'd like the editor to freely choose from linking to an external website, internal page, or an internal file. This excludes the use of As a conclusion, I can only choose between Does that make sense? |
It does make sense. And actually with the work I started with #2061 it should be possible to do that, because with the new normalized data structure it will be possible to have a belongs to association in every ingredient. We could rethink the link ingredient to have an Let's reopen this as a reminder |
Interesting! I'll need to have a look at #2061 in more depth to fully grasp the structure, but it sounds like a good idea. |
This issue has not seen any activity in a long time. |
This issue has not seen any activity in a long time. |
Is your feature request related to a problem? Please describe.
Creating an element for freely linking to any source works well by either using
EssenceLink
orEssenceText#settings[{:linkable: true}]
. It works well until you want to display meta information in case anAlchemy::Attachment
from the library is linked. Since only the URL is stored every other information is literally lost and there is no way to get to the file name, mime type or size.Describe the solution you'd like
It would be nice to keep a reference to the
Alchemy::Attachment
in case of linking from anAlchemy::EssenceText
, so I can still access its information.The text was updated successfully, but these errors were encountered: