-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
📎 Attachments #1051
Comments
Depends on nextcloud/notes#74 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Yes I agree this is not final nor a good solution, but seeing the server app won't implement this anytime soon..
Do you mean we already can take photo from camera/file system then insert it as base64?
Would wrapping mechanism for the image element be possible..? Also for readable notes it makes sense to resize the image anyway. I'd try pull request, but my java and Android coding (now they use Kotlin?) is very rusty to say the least.😅 |
This was a sample of an image with only Sorry, but this workaround leads into the wrong direction. If we do it, we will do it the right way - everything else will raise expections by the users which we can't fulfill.
Unfortunately there is no easy way for the editor to hide such stuff (while it is easy in preview mode).
Yeah, well, i'd say it's not your fault but Android is a shithole. 😄 I'd suggest to make a PR to the server app to support the feature the proper way instead. It will probably be more straight forward with less bleeding edges. |
Actually i think it should be simpler - just put image same folder to server and reference from the Note. |
I found out that you can add an image (within nc) in this way |
@SIRSteiner this is an "official" way for the Notes Android app. This is currently only available on F-Droid. It also works for valid paths on your files in your Nextcloud like This ain't exactly this issue though because it doesn't allow the upload of attachments and it does only work for images, not for other file types. |
@stefan-niedermann As i experiment in nextcloud/notes#785, where would i need to add link-normalization for markwon? it seems that module is in nextcloud-commons, but i don't think it is reasonable to implement a nextcloud-notes api in a reusable module |
Good question, i have already thought about it. The remaining issue with your implementation in the context of the Notes Android app is to determine the root for relative paths (currently we only support absolute paths starting at the root or a fully qualified URL. I guess we need to find a way to configure the |
Actually, you dont need to do that. (Or i misunderstood the problem) There wont be a "path" for an image, just an api. So the image can always be accessed by: So, if you can prepend the full url to the relative path (and change ../ to ;;/) you always get the image. |
UrlProcessorRelativeToAbsolute Maybe we can expose this to the apps using markdown. We should think about how we can provide custom Link and URL Resolvers to nextcloud apps using your common-implementation, because i could imagine other apps also have the need to resolve relative links in markdown. Using some sort of interface where we can pass custom Resolvers would allow for apps to extend existing resolvers and pass them to the renderer |
@stefan-niedermann Do you have a good guide on how i would set up a development environment which also has the library in source-format? |
Unfortunately not, sorry, but i only code for the Notes Android client... |
Do you develop nextcloud-commons and the notes app independently? Otherwise i am going to build the nextclouc-commons library manually and use a local jar in the nextcloud-notes app |
They are developed independently (commons is also used by Deck and maybe a few other apps) |
so, to run a modified version of nc-commons i have to make changes, build the library, copy the jar and rebuild the notes app with that jar? Hm, seems tedious, but thanks anyway! |
I think one can link the gradle dependency to another local project, but i unfortunately haven't set up such an environment successfully yet 😕 |
@stefan-niedermann nextcloud/notes#785 has been merged, to we can now start working on client side support. |
@newhinton are you interested in joining forces here? Maybe we could have a short chat regarding the this? If yes, please contact me via [email protected] 🙂 🚀 |
Hi, i would like to add my experience: (A) I understand that there is an app in F Droid store which I installed on Android 12 I try to find a way to make JPG attachments visible in both. (1) I try to find a way to create a new note including uploading an attachment. (2) (1) does only work with (B) in Desktop View, but then I cannot use the Shortcut URL on my Home Page (2) leads in both cases (A) and (B) to the error
is that expected until 25.0.6 and latest Notes App on Nextcloud or could it work better? Any experience is helpful Thank you so much. |
It would be great in the view mode of the notes editor if referenced image files (jpg or animated gifs from ../media/...... ) were displayed.
The text was updated successfully, but these errors were encountered: